Changeset 74253 in webkit


Ignore:
Timestamp:
Dec 17, 2010 4:52:18 AM (13 years ago)
Author:
pfeldman@chromium.org
Message:

2010-12-17 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: [REGRESSION] Cmd (Ctrl) + G does not search next in Scripts panel.
https://bugs.webkit.org/show_bug.cgi?id=50893

Now Mac shortcuts are:

  • Cmd F/G = find / next
  • Cmd L = go to line

Win/Linux:

  • Ctrl+G = go to line
  • inspector/front-end/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype._registerShortcuts):
  • inspector/front-end/inspector.js: (WebInspector._registerShortcuts):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74251 r74253  
     12010-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
    1202010-12-16  Sergio Villar Senin  <svillar@igalia.com>
    221
  • trunk/WebCore/inspector/front-end/ScriptsPanel.js

    r74191 r74253  
    984984        section.addAlternateKeys([ shortcut1.name, shortcut2.name ], WebInspector.UIString("Step out"));
    985985
    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);
    987991        this._shortcuts[shortcut1.key] = this.showGoToLineDialog.bind(this);
    988992        section.addAlternateKeys([ shortcut1.name ], WebInspector.UIString("Go to Line"));
  • trunk/WebCore/inspector/front-end/inspector.js

    r74119 r74253  
    790790    section.addKey(shortcut.shortcutToString(shortcut.Keys.Esc), WebInspector.UIString("Toggle console"));
    791791    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    }
    797799}
    798800
     
    876878
    877879        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) {
    884881                if (event.shiftKey) {
    885882                    if (this.currentPanel.jumpToPreviousSearchResult)
     
    889886                event.preventDefault();
    890887            }
    891 
    892888            break;
    893889
Note: See TracChangeset for help on using the changeset viewer.