| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 327 |
| 328 _registerShortcuts() { | 328 _registerShortcuts() { |
| 329 var shortcut = UI.KeyboardShortcut; | 329 var shortcut = UI.KeyboardShortcut; |
| 330 var section = UI.shortcutsScreen.section(Common.UIString('All Panels')); | 330 var section = UI.shortcutsScreen.section(Common.UIString('All Panels')); |
| 331 var keys = [ | 331 var keys = [ |
| 332 shortcut.makeDescriptor('[', shortcut.Modifiers.CtrlOrMeta), | 332 shortcut.makeDescriptor('[', shortcut.Modifiers.CtrlOrMeta), |
| 333 shortcut.makeDescriptor(']', shortcut.Modifiers.CtrlOrMeta) | 333 shortcut.makeDescriptor(']', shortcut.Modifiers.CtrlOrMeta) |
| 334 ]; | 334 ]; |
| 335 section.addRelatedKeys(keys, Common.UIString('Go to the panel to the left/ri
ght')); | 335 section.addRelatedKeys(keys, Common.UIString('Go to the panel to the left/ri
ght')); |
| 336 | 336 |
| 337 keys = [ | |
| 338 shortcut.makeDescriptor('[', shortcut.Modifiers.CtrlOrMeta | shortcut.Modi
fiers.Alt), | |
| 339 shortcut.makeDescriptor(']', shortcut.Modifiers.CtrlOrMeta | shortcut.Modi
fiers.Alt) | |
| 340 ]; | |
| 341 section.addRelatedKeys(keys, Common.UIString('Go back/forward in panel histo
ry')); | |
| 342 | |
| 343 var toggleConsoleLabel = Common.UIString('Show console'); | 337 var toggleConsoleLabel = Common.UIString('Show console'); |
| 344 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tilde, shortcut.Modifie
rs.Ctrl), toggleConsoleLabel); | 338 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tilde, shortcut.Modifie
rs.Ctrl), toggleConsoleLabel); |
| 345 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Esc), Common.UIString('
Toggle drawer')); | 339 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Esc), Common.UIString('
Toggle drawer')); |
| 346 if (Components.dockController.canDock()) { | 340 if (Components.dockController.canDock()) { |
| 347 section.addKey( | 341 section.addKey( |
| 348 shortcut.makeDescriptor('M', shortcut.Modifiers.CtrlOrMeta | shortcut.
Modifiers.Shift), | 342 shortcut.makeDescriptor('M', shortcut.Modifiers.CtrlOrMeta | shortcut.
Modifiers.Shift), |
| 349 Common.UIString('Toggle device mode')); | 343 Common.UIString('Toggle device mode')); |
| 350 section.addKey( | 344 section.addKey( |
| 351 shortcut.makeDescriptor('D', shortcut.Modifiers.CtrlOrMeta | shortcut.
Modifiers.Shift), | 345 shortcut.makeDescriptor('D', shortcut.Modifiers.CtrlOrMeta | shortcut.
Modifiers.Shift), |
| 352 Common.UIString('Toggle dock side')); | 346 Common.UIString('Toggle dock side')); |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 * @override | 972 * @override |
| 979 * @return {?Element} | 973 * @return {?Element} |
| 980 */ | 974 */ |
| 981 settingElement() { | 975 settingElement() { |
| 982 return UI.SettingsUI.createSettingCheckbox( | 976 return UI.SettingsUI.createSettingCheckbox( |
| 983 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 977 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 984 } | 978 } |
| 985 }; | 979 }; |
| 986 | 980 |
| 987 new Main.Main(); | 981 new Main.Main(); |
| OLD | NEW |