mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
UWP: Add console input
This commit is contained in:
parent
9de955f2cc
commit
c722b5fdca
5 changed files with 89 additions and 29 deletions
|
@ -335,6 +335,15 @@ void BrowserPage::OnDevtoolsButtonClicked(IInspectable const &,
|
|||
}
|
||||
}
|
||||
|
||||
void BrowserPage::OnJSInputEdited(IInspectable const &,
|
||||
Input::KeyRoutedEventArgs const &e) {
|
||||
if (e.Key() == Windows::System::VirtualKey::Enter) {
|
||||
auto input = JSInput().Text();
|
||||
JSInput().Text(L"");
|
||||
mDevtoolsClient->Evaluate(input);
|
||||
}
|
||||
}
|
||||
|
||||
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