| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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); |
| OLD | NEW |