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

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: nits 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
Index: sky/framework/sky-input.sky
diff --git a/sky/framework/sky-input.sky b/sky/framework/sky-input.sky
index 9ebbaedbf601570365d311ff2b9558a36930f015..9416d7ba45f2750d4accf6132ff40c38eb6fe8f4 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.virtualKeyCode == 0xD)
event.preventDefault();
}
handleFocus(event) {

Powered by Google App Engine
This is Rietveld 408576698