Changeset 53894 in webkit


Ignore:
Timestamp:
Jan 26, 2010 9:04:34 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-26 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Timothy Hatcher.

Enable the Audits panel via a shortcut (Cmd/Ctrl+Alt+A)
https://bugs.webkit.org/show_bug.cgi?id=34158

  • inspector/front-end/inspector.js: (WebInspector.documentKeyDown):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r53893 r53894  
     12010-01-26  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Enable the Audits panel via a shortcut (Cmd/Ctrl+Alt+A)
     6        https://bugs.webkit.org/show_bug.cgi?id=34158
     7
     8        * inspector/front-end/inspector.js:
     9        (WebInspector.documentKeyDown):
     10
    1112010-01-26  Kent Tamura  <tkent@chromium.org>
    212
  • trunk/WebCore/inspector/front-end/inspector.js

    r53766 r53894  
    694694                this.panelOrder[index].toolbarItem.click();
    695695                event.preventDefault();
     696            }
     697
     698            break;
     699
     700        case "U+0041": // A key
     701            if (isMac)
     702                var shouldShowAuditsPanel = event.metaKey && !event.shiftKey && !event.ctrlKey && event.altKey;
     703            else
     704                var shouldShowAuditsPanel = event.ctrlKey && !event.shiftKey && !event.metaKey && event.altKey;
     705
     706            if (shouldShowAuditsPanel) {
     707                if (!this.panels.audits)
     708                    this.panels.audits = new WebInspector.AuditsPanel();
     709                this.currentPanel = this.panels.audits;
    696710            }
    697711
Note: See TracChangeset for help on using the changeset viewer.