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

Unified Diff: chrome/browser/resources/md_history/app.crisper.js

Issue 2264933002: [MD History] Make sidebar menu respond to spacebar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_presubmit
Patch Set: rebase Created 4 years, 4 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/browser/resources/md_history/app.crisper.js
diff --git a/chrome/browser/resources/md_history/app.crisper.js b/chrome/browser/resources/md_history/app.crisper.js
index b8422e555254173f9ef6d916297f45c6bd7ad7ab..b802756ce6f34ed5556db762c09abcbe1257bc96 100644
--- a/chrome/browser/resources/md_history/app.crisper.js
+++ b/chrome/browser/resources/md_history/app.crisper.js
@@ -8554,6 +8554,12 @@ Polymer({
reflectToAttribute: true
}
},
+ listeners: {
+ keydown: 'onKeydown_'
+ },
+ onKeydown_: function(e) {
+ if (e.code == 'Space') e.path[0].click();
+ },
onSelectorActivate_: function() {
this.fire('history-close-drawer');
},
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/side_bar.js » ('j') | chrome/browser/resources/md_history/side_bar.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698