Changeset 116852 in webkit


Ignore:
Timestamp:
May 12, 2012 5:52:42 AM (12 years ago)
Author:
pfeldman@chromium.org
Message:

Web Inspector: make call frame selector pane focusable, allow Up / Down to select current call frame.
https://bugs.webkit.org/show_bug.cgi?id=86291

Reviewed by Yury Semikhatsky.

This change makes sidebar section focusable, introduces key listeners for Up and Down.

  • inspector/front-end/CallStackSidebarPane.js:

(WebInspector.CallStackSidebarPane):
(WebInspector.CallStackSidebarPane.prototype.setStatus):
(WebInspector.CallStackSidebarPane.prototype._treeKeyDown):

  • inspector/front-end/UISourceCode.js:
  • inspector/front-end/scriptsPanel.css:

(#scripts-debug-toolbar img):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116851 r116852  
     12012-05-12  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Web Inspector: make call frame selector pane focusable, allow Up / Down to select current call frame.
     4        https://bugs.webkit.org/show_bug.cgi?id=86291
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        This change makes sidebar section focusable, introduces key listeners for Up and Down.
     9
     10        * inspector/front-end/CallStackSidebarPane.js:
     11        (WebInspector.CallStackSidebarPane):
     12        (WebInspector.CallStackSidebarPane.prototype.setStatus):
     13        (WebInspector.CallStackSidebarPane.prototype._treeKeyDown):
     14        * inspector/front-end/UISourceCode.js:
     15        * inspector/front-end/scriptsPanel.css:
     16        (#scripts-debug-toolbar img):
     17
    1182012-05-12  Ilya Tikhonovsky  <loislo@chromium.org>
    219
  • trunk/Source/WebCore/inspector/front-end/CallStackSidebarPane.js

    r116775 r116852  
    3434
    3535    this.bodyElement.addEventListener("contextmenu", this._contextMenu.bind(this), true);
     36    this.bodyElement.addEventListener("keydown", this._keyDown.bind(this), true);
     37    this.bodyElement.tabIndex = 0;
    3638}
    3739
     
    151153            this._statusMessageElement.appendChild(status);
    152154        }
     155    },
     156
     157    _keyDown: function(event)
     158    {
     159        if (event.altKey || event.shiftKey || event.metaKey || event.ctrlKey)
     160            return;
     161
     162        if (event.keyIdentifier === "Up") {
     163            this._selectPreviousCallFrameOnStack();
     164            event.consume();
     165        } else if (event.keyIdentifier === "Down") {
     166            this._selectNextCallFrameOnStack();
     167            event.consume();
     168        }
    153169    }
    154170}
  • trunk/Source/WebCore/inspector/front-end/inspector.css

    r116672 r116852  
    11781178
    11791179.placard.selected {
    1180     border-top: 1px solid rgb(145, 160, 192);
    1181     background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(162, 177, 207)), to(rgb(120, 138, 177)));
     1180    border-top: 1px solid rgb(172, 172, 172);
     1181    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(182, 182, 182)), to(rgb(162, 162, 162)));
    11821182    -webkit-background-origin: padding;
    11831183    -webkit-background-clip: padding;
     
    11851185
    11861186:focus .placard.selected {
    1187     border-top: 1px solid rgb(68, 128, 200);
    1188     background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(92, 147, 213)), to(rgb(21, 83, 170)));
    1189 }
    1190 
    1191 body.inactive .placard.selected {
    1192     border-top: 1px solid rgb(151, 151, 151);
    1193     background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(180, 180, 180)), to(rgb(138, 138, 138)));
     1187    border-top: 1px solid rgb(70, 103, 215);
     1188    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(92, 147, 213)), to(rgb(56, 121, 217)));
    11941189}
    11951190
  • trunk/Source/WebCore/inspector/front-end/scriptsPanel.css

    r114753 r116852  
    5454}
    5555
     56#scripts-debug-toolbar img {
     57    padding-top: 2px;
     58}
     59
    5660#scripts-debug-sidebar-contents {
    5761    position: absolute;
Note: See TracChangeset for help on using the changeset viewer.