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

Unified Diff: ui/webui/resources/js/cr/link_controller.js

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
« no previous file with comments | « ui/webui/resources/js/action_link.js ('k') | ui/webui/resources/js/cr/ui/autocomplete_list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/link_controller.js
diff --git a/ui/webui/resources/js/cr/link_controller.js b/ui/webui/resources/js/cr/link_controller.js
index e643eefb1c378c078868c196631e2502aee0d896..0e93f75909bacad8c24bdcfbb6c3e27922301a62 100644
--- a/ui/webui/resources/js/cr/link_controller.js
+++ b/ui/webui/resources/js/cr/link_controller.js
@@ -81,8 +81,7 @@ cr.define('cr', function() {
*/
openUrlFromEvent: function(url, e) {
// We only support keydown Enter and non right click events.
- if (e.type == 'keydown' && e.keyIdentifier == 'Enter' ||
- e.button != 2) {
+ if (e.type == 'keydown' && e.key == 'Enter' || e.button != 2) {
var kind;
var ctrl = cr.isMac && e.metaKey || !cr.isMac && e.ctrlKey;
« no previous file with comments | « ui/webui/resources/js/action_link.js ('k') | ui/webui/resources/js/cr/ui/autocomplete_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698