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

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: update_closure 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 | « no previous file | chrome/browser/resources/md_history/compiled_resources2.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e76cd7a5c654f9688ef4d99cde69d6b2d47e3362 100644
--- a/chrome/browser/resources/md_history/app.crisper.js
+++ b/chrome/browser/resources/md_history/app.crisper.js
@@ -8542,6 +8542,7 @@ Polymer({
// found in the LICENSE file.
Polymer({
is: 'history-side-bar',
+ behaviors: [ Polymer.IronA11yKeysBehavior ],
properties: {
selectedPage: {
type: String,
@@ -8554,6 +8555,12 @@ Polymer({
reflectToAttribute: true
}
},
+ keyBindings: {
+ 'space:keydown': 'onSpacePressed_'
+ },
+ onSpacePressed_: function(e) {
+ e.detail.keyboardEvent.path[0].click();
+ },
onSelectorActivate_: function() {
this.fire('history-close-drawer');
},
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698