Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: sky/framework/sky-input.sky

Issue 872233002: Switch KeyboardEvents over to NewEventHandler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename virtualKeyCode to key Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/web/WebViewImpl.cpp ('k') | sky/tests/services/event-sender.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-input.sky
diff --git a/sky/framework/sky-input.sky b/sky/framework/sky-input.sky
index 9ebbaedbf601570365d311ff2b9558a36930f015..5f1130bd0470cbb681fb8a6cdb952ee4d3ce2673 100644
--- a/sky/framework/sky-input.sky
+++ b/sky/framework/sky-input.sky
@@ -57,7 +57,7 @@ module.exports = class extends SkyElement {
}
handleKeyDown(event) {
// TODO(abarth): You can still get newlines if the user pastes them.
- if (event.keyCode == 0xD)
+ if (event.key == 0xD)
event.preventDefault();
}
handleFocus(event) {
« no previous file with comments | « sky/engine/web/WebViewImpl.cpp ('k') | sky/tests/services/event-sender.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698