Home button and larger buttons in toolbar

This commit is contained in:
Paul Rouget 2019-12-04 08:08:08 +01:00
parent 6e3c131139
commit 193113037d
7 changed files with 24 additions and 9 deletions

View file

@ -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) {