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

Unified Diff: chrome/browser/resources/md_history/side_bar.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
« no previous file with comments | « chrome/browser/resources/md_history/app.crisper.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/side_bar.js
diff --git a/chrome/browser/resources/md_history/side_bar.js b/chrome/browser/resources/md_history/side_bar.js
index a652263760e398ec0482673df52f6596cd4f1e01..b133e37de5e51006195f7c8acad10cd45b8bb958 100644
--- a/chrome/browser/resources/md_history/side_bar.js
+++ b/chrome/browser/resources/md_history/side_bar.js
@@ -16,6 +16,18 @@ Polymer({
drawer: {type: Boolean, reflectToAttribute: true},
},
+ listeners: {
+ 'keydown': 'onKeydown_',
+ },
+
+ /**
+ * @private
tsergeant 2016/08/23 05:41:17 Nit: @param annotation
calamity 2016/08/24 03:57:43 Done.
+ */
+ onKeydown_: function(e) {
+ if (e.code == 'Space')
+ e.path[0].click();
+ },
+
/**
* @private
*/
« no previous file with comments | « chrome/browser/resources/md_history/app.crisper.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698