Changeset 86932 in webkit
- Timestamp:
- May 20, 2011 2:32:52 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86931 r86932 1 2011-05-19 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: ctrl+s should not switch source frame to read only mode. 6 https://bugs.webkit.org/show_bug.cgi?id=61125 7 8 * inspector/front-end/SourceFrame.js: 9 (WebInspector.SourceFrame.prototype.commitEditing.didEditContent): 10 (WebInspector.SourceFrame.prototype.commitEditing): 11 * inspector/front-end/inspector.js: 12 (WebInspector.documentKeyDown): 13 1 14 2011-05-20 Piroska András <Piroska.Andras@stud.u-szeged.hu> 2 15 -
trunk/Source/WebCore/inspector/front-end/SourceFrame.js
r86842 r86932 904 904 }, 905 905 906 commitEditing: function( callback)906 commitEditing: function() 907 907 { 908 908 if (!this._viewerState) { 909 909 // No editing was actually done. 910 910 this._setReadOnly(true); 911 callback();912 911 return; 913 912 } … … 916 915 { 917 916 this._commitEditingInProgress = false; 917 this._textViewer.readOnly = false; 918 918 919 if (error) { 919 920 if (error.data && error.data[0]) { … … 921 922 WebInspector.showConsole(); 922 923 } 923 this._textViewer.readOnly = false;924 924 return; 925 925 } … … 940 940 941 941 delete this._viewerState; 942 this._ setReadOnly(true);942 this._delegate.setScriptSourceIsBeingEdited(false); 943 943 } 944 944 this._commitEditingInProgress = true; -
trunk/Source/WebCore/inspector/front-end/inspector.js
r86745 r86932 691 691 } 692 692 693 if (WebInspector.isEditingAnyField())694 return;695 696 693 if (this.currentFocusElement && this.currentFocusElement.handleKeyEvent) { 697 694 this.currentFocusElement.handleKeyEvent(event); … … 715 712 return; 716 713 } 714 715 if (WebInspector.isEditingAnyField()) 716 return; 717 717 718 718 var isMac = WebInspector.isMac();
Note: See TracChangeset
for help on using the changeset viewer.