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

Side by Side Diff: chrome/browser/resources/chromeos/keyboard_overlay.js

Issue 11280153: Add Search-. as a shortcut for the Insert key when Search is acting as a Function key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/ui/ash/event_rewriter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 <include src="keyboard_overlay_data.js"/> 5 <include src="keyboard_overlay_data.js"/>
6 <include src="keyboard_overlay_accessibility_helper.js"/> 6 <include src="keyboard_overlay_accessibility_helper.js"/>
7 7
8 var BASE_KEYBOARD = { 8 var BASE_KEYBOARD = {
9 top: 0, 9 top: 0,
10 left: 0, 10 left: 0,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 '7<>SEARCH': 'keyboardOverlayF7', 152 '7<>SEARCH': 'keyboardOverlayF7',
153 '8<>SEARCH': 'keyboardOverlayF8', 153 '8<>SEARCH': 'keyboardOverlayF8',
154 '9<>SEARCH': 'keyboardOverlayF9', 154 '9<>SEARCH': 'keyboardOverlayF9',
155 '0<>SEARCH': 'keyboardOverlayF10', 155 '0<>SEARCH': 'keyboardOverlayF10',
156 '-<>SEARCH': 'keyboardOverlayF11', 156 '-<>SEARCH': 'keyboardOverlayF11',
157 '=<>SEARCH': 'keyboardOverlayF12', 157 '=<>SEARCH': 'keyboardOverlayF12',
158 'backspace<>SEARCH': 'keyboardOverlayDelete', 158 'backspace<>SEARCH': 'keyboardOverlayDelete',
159 'down<>SEARCH': 'keyboardOverlayPageDown', 159 'down<>SEARCH': 'keyboardOverlayPageDown',
160 'right<>SEARCH': 'keyboardOverlayEnd', 160 'right<>SEARCH': 'keyboardOverlayEnd',
161 'up<>SEARCH': 'keyboardOverlayPageUp', 161 'up<>SEARCH': 'keyboardOverlayPageUp',
162 'left<>SEARCH': 'keyboardOverlayHome' 162 'left<>SEARCH': 'keyboardOverlayHome',
163 '.<>SEARCH': 'keyboardOverlayInsert'
163 }; 164 };
164 165
165 for (var key in searchModifierRemoveShortcuts) 166 for (var key in searchModifierRemoveShortcuts)
166 delete shortcutDataCache[key]; 167 delete shortcutDataCache[key];
167 for (var key in searchModifierAddShortcuts) 168 for (var key in searchModifierAddShortcuts)
168 shortcutDataCache[key] = searchModifierAddShortcuts[key]; 169 shortcutDataCache[key] = searchModifierAddShortcuts[key];
169 } 170 }
170 171
171 return shortcutDataCache; 172 return shortcutDataCache;
172 } 173 }
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 * Handles click events of the learn more link. 662 * Handles click events of the learn more link.
662 * @param {Event} e Mouse click event. 663 * @param {Event} e Mouse click event.
663 */ 664 */
664 function learnMoreClicked(e) { 665 function learnMoreClicked(e) {
665 chrome.send('openLearnMorePage'); 666 chrome.send('openLearnMorePage');
666 chrome.send('DialogClose'); 667 chrome.send('DialogClose');
667 e.preventDefault(); 668 e.preventDefault();
668 } 669 }
669 670
670 document.addEventListener('DOMContentLoaded', init); 671 document.addEventListener('DOMContentLoaded', init);
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/ui/ash/event_rewriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698