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

Unified Diff: chrome/renderer/resources/plugins/plugin_poster.html

Issue 2104103002: Convert Event#keyIdentifier (deprecated) to Event#key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch file manager test Created 4 years, 5 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: chrome/renderer/resources/plugins/plugin_poster.html
diff --git a/chrome/renderer/resources/plugins/plugin_poster.html b/chrome/renderer/resources/plugins/plugin_poster.html
index db165602cb31722c6b9ae4a8b1e0dc35fea158b0..5448b2c96cab8dd359524aad050c4e4825027ecd 100644
--- a/chrome/renderer/resources/plugins/plugin_poster.html
+++ b/chrome/renderer/resources/plugins/plugin_poster.html
@@ -10,7 +10,7 @@
};
window.onkeydown = function(e) {
- if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') {
+ if (e.key == 'Enter' || e.key == ' ') {
plugin.load();
e.preventDefault();
}

Powered by Google App Engine
This is Rietveld 408576698