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

Unified Diff: chrome/browser/resources/md_history/history_item.js

Issue 2907113002: [MD History] Allow Home and End to scroll the history list. (Closed)
Patch Set: Created 3 years, 7 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 | 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/history_item.js
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js
index 0415d721acbeac447d589ca52d0f4f977fd1ce5d..646493be7fa3e7b4700951e706ef964ce4eb3638 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -66,6 +66,10 @@ cr.define('md_history', function() {
* @return {boolean} Whether the event was handled.
*/
onKeydown: function(row, e) {
+ // Allow Home and End to move the history list.
+ if (e.key == 'Home' || e.key == 'End')
+ return true;
+
// Prevent iron-list from changing the focus on enter.
if (e.key == 'Enter')
e.stopPropagation();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698