Index: ui/webui/resources/js/action_link.js |
diff --git a/ui/webui/resources/js/action_link.js b/ui/webui/resources/js/action_link.js |
index 70b89e728a6d9de6b802cdc0200d793e870e0f36..a9e1ffd6620991b44b5a6aa4a790bd93da9c62eb 100644 |
--- a/ui/webui/resources/js/action_link.js |
+++ b/ui/webui/resources/js/action_link.js |
@@ -44,7 +44,7 @@ var ActionLink = document.registerElement('action-link', { |
this.setAttribute('role', 'link'); |
this.addEventListener('keydown', function(e) { |
- if (!this.disabled && e.keyIdentifier == 'Enter' && !this.href) { |
+ if (!this.disabled && e.key == 'Enter' && !this.href) { |
// Schedule a click asynchronously because other 'keydown' handlers |
// may still run later (e.g. document.addEventListener('keydown')). |
// Specifically options dialogs break when this timeout isn't here. |