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

Unified Diff: chrome/browser/resources/options/search_page.js

Issue 7616004: Enable the help page and the keyboard overlay to be shown with shortcut key on settings tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/search_page.js
diff --git a/chrome/browser/resources/options/search_page.js b/chrome/browser/resources/options/search_page.js
index 134b5bf0dac467aa2c9c02732e003c4574a06dd3..8ed1ae61ef787004423eaf0e96e547753770ef97 100644
--- a/chrome/browser/resources/options/search_page.js
+++ b/chrome/browser/resources/options/search_page.js
@@ -545,7 +545,8 @@ cr.define('options', function() {
}
break;
case FORWARD_SLASH_KEY_CODE:
- if (!/INPUT|SELECT|BUTTON|TEXTAREA/.test(event.target.tagName)) {
+ if (!/INPUT|SELECT|BUTTON|TEXTAREA/.test(event.target.tagName) &&
+ !event.ctrlKey && !event.altKey) {
this.searchField.focus();
event.stopPropagation();
event.preventDefault();
« 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