Changeset 116852 in webkit
- Timestamp:
- May 12, 2012 5:52:42 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116851 r116852 1 2012-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 1 18 2012-05-12 Ilya Tikhonovsky <loislo@chromium.org> 2 19 -
trunk/Source/WebCore/inspector/front-end/CallStackSidebarPane.js
r116775 r116852 34 34 35 35 this.bodyElement.addEventListener("contextmenu", this._contextMenu.bind(this), true); 36 this.bodyElement.addEventListener("keydown", this._keyDown.bind(this), true); 37 this.bodyElement.tabIndex = 0; 36 38 } 37 39 … … 151 153 this._statusMessageElement.appendChild(status); 152 154 } 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 } 153 169 } 154 170 } -
trunk/Source/WebCore/inspector/front-end/inspector.css
r116672 r116852 1178 1178 1179 1179 .placard.selected { 1180 border-top: 1px solid rgb(1 45, 160, 192);1181 background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(1 62, 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))); 1182 1182 -webkit-background-origin: padding; 1183 1183 -webkit-background-clip: padding; … … 1185 1185 1186 1186 :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))); 1194 1189 } 1195 1190 -
trunk/Source/WebCore/inspector/front-end/scriptsPanel.css
r114753 r116852 54 54 } 55 55 56 #scripts-debug-toolbar img { 57 padding-top: 2px; 58 } 59 56 60 #scripts-debug-sidebar-contents { 57 61 position: absolute;
Note: See TracChangeset
for help on using the changeset viewer.