Changeset 84150 in webkit
- Timestamp:
- Apr 18, 2011 9:23:57 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r84149 r84150 1 2011-04-18 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: Backspace in the Console is broken 6 https://bugs.webkit.org/show_bug.cgi?id=58764 7 8 * inspector/front-end/inspector.js: 9 (WebInspector.documentKeyDown): 10 1 11 2011-04-18 Hans Wennborg <hans@chromium.org> 2 12 -
trunk/Source/WebCore/inspector/front-end/inspector.js
r84126 r84150 792 792 if (!isMac) 793 793 PageAgent.reloadPage(event.ctrlKey || event.shiftKey); 794 break; 795 case "U+0008": // Backspace 796 if (this.currentFocusElement && document.defaultView) { 797 // We inhibit the Backspace default handling for non-editable elements 798 // (which otherwise may result into a navigation to the previous history entry with a docked inspector). 799 var computedStyle = document.defaultView.getComputedStyle(this.currentFocusElement, null, ""); 800 var userModify = computedStyle.getPropertyValue("-webkit-user-modify"); 801 if (!userModify || userModify === "read-only") 802 event.preventDefault(); 803 } 794 804 break; 795 805 }
Note: See TracChangeset
for help on using the changeset viewer.