mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Home button and larger buttons in toolbar
This commit is contained in:
parent
6e3c131139
commit
193113037d
7 changed files with 24 additions and 9 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "logs.h"
|
||||
#include "BrowserPage.h"
|
||||
#include "BrowserPage.g.cpp"
|
||||
#include "DefaultUrl.h"
|
||||
|
||||
using namespace std::placeholders;
|
||||
using namespace winrt::Windows::Foundation;
|
||||
|
@ -127,6 +128,11 @@ void BrowserPage::OnStopButtonClicked(IInspectable const &,
|
|||
servoControl().Stop();
|
||||
}
|
||||
|
||||
void BrowserPage::OnHomeButtonClicked(IInspectable const &,
|
||||
RoutedEventArgs const &) {
|
||||
servoControl().LoadURIOrSearch(DEFAULT_URL);
|
||||
}
|
||||
|
||||
void BrowserPage::OnURLEdited(IInspectable const &,
|
||||
Input::KeyRoutedEventArgs const &e) {
|
||||
if (e.Key() == Windows::System::VirtualKey::Enter) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue