Changeset 74253 in webkit
- Timestamp:
- Dec 17, 2010 4:52:18 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74251 r74253 1 2010-12-17 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: [REGRESSION] Cmd (Ctrl) + G does not search next in Scripts panel. 6 https://bugs.webkit.org/show_bug.cgi?id=50893 7 8 Now Mac shortcuts are: 9 - Cmd F/G = find / next 10 - Cmd L = go to line 11 12 Win/Linux: 13 - Ctrl+G = go to line 14 15 * inspector/front-end/ScriptsPanel.js: 16 (WebInspector.ScriptsPanel.prototype._registerShortcuts): 17 * inspector/front-end/inspector.js: 18 (WebInspector._registerShortcuts): 19 1 20 2010-12-16 Sergio Villar Senin <svillar@igalia.com> 2 21 -
trunk/WebCore/inspector/front-end/ScriptsPanel.js
r74191 r74253 984 984 section.addAlternateKeys([ shortcut1.name, shortcut2.name ], WebInspector.UIString("Step out")); 985 985 986 shortcut1 = WebInspector.KeyboardShortcut.makeDescriptor("g", platformSpecificModifier); 986 var isMac = WebInspector.isMac(); 987 if (isMac) 988 shortcut1 = WebInspector.KeyboardShortcut.makeDescriptor("l", WebInspector.KeyboardShortcut.Modifiers.Meta); 989 else 990 shortcut1 = WebInspector.KeyboardShortcut.makeDescriptor("g", WebInspector.KeyboardShortcut.Modifiers.Ctrl); 987 991 this._shortcuts[shortcut1.key] = this.showGoToLineDialog.bind(this); 988 992 section.addAlternateKeys([ shortcut1.name ], WebInspector.UIString("Go to Line")); -
trunk/WebCore/inspector/front-end/inspector.js
r74119 r74253 790 790 section.addKey(shortcut.shortcutToString(shortcut.Keys.Esc), WebInspector.UIString("Toggle console")); 791 791 section.addKey(shortcut.shortcutToString("f", shortcut.Modifiers.CtrlOrMeta), WebInspector.UIString("Search")); 792 keys = [ 793 shortcut.shortcutToString("g", shortcut.Modifiers.CtrlOrMeta), 794 shortcut.shortcutToString("g", shortcut.Modifiers.CtrlOrMeta | shortcut.Modifiers.Shift) 795 ]; 796 section.addRelatedKeys(keys, WebInspector.UIString("Find next/previous")); 792 if (WebInspector.isMac()) { 793 keys = [ 794 shortcut.shortcutToString("g", shortcut.Modifiers.Meta), 795 shortcut.shortcutToString("g", shortcut.Modifiers.Meta | shortcut.Modifiers.Shift) 796 ]; 797 section.addRelatedKeys(keys, WebInspector.UIString("Find next/previous")); 798 } 797 799 } 798 800 … … 876 878 877 879 case "U+0047": // G key 878 if (isMac) 879 var isFindAgainKey = event.metaKey && !event.ctrlKey && !event.altKey; 880 else 881 var isFindAgainKey = event.ctrlKey && !event.metaKey && !event.altKey; 882 883 if (isFindAgainKey) { 880 if (isMac && event.metaKey && !event.ctrlKey && !event.altKey) { 884 881 if (event.shiftKey) { 885 882 if (this.currentPanel.jumpToPreviousSearchResult) … … 889 886 event.preventDefault(); 890 887 } 891 892 888 break; 893 889
Note: See TracChangeset
for help on using the changeset viewer.