Changeset 86932 in webkit


Ignore:
Timestamp:
May 20, 2011 2:32:52 AM (13 years ago)
Author:
podivilov@chromium.org
Message:

2011-05-19 Pavel Podivilov <podivilov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: ctrl+s should not switch source frame to read only mode.
https://bugs.webkit.org/show_bug.cgi?id=61125

  • inspector/front-end/SourceFrame.js: (WebInspector.SourceFrame.prototype.commitEditing.didEditContent): (WebInspector.SourceFrame.prototype.commitEditing):
  • inspector/front-end/inspector.js: (WebInspector.documentKeyDown):
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86931 r86932  
     12011-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
    1142011-05-20  Piroska András  <Piroska.Andras@stud.u-szeged.hu>
    215
  • trunk/Source/WebCore/inspector/front-end/SourceFrame.js

    r86842 r86932  
    904904    },
    905905
    906     commitEditing: function(callback)
     906    commitEditing: function()
    907907    {
    908908        if (!this._viewerState) {
    909909            // No editing was actually done.
    910910            this._setReadOnly(true);
    911             callback();
    912911            return;
    913912        }
     
    916915        {
    917916            this._commitEditingInProgress = false;
     917            this._textViewer.readOnly = false;
     918
    918919            if (error) {
    919920                if (error.data && error.data[0]) {
     
    921922                    WebInspector.showConsole();
    922923                }
    923                 this._textViewer.readOnly = false;
    924924                return;
    925925            }
     
    940940
    941941            delete this._viewerState;
    942             this._setReadOnly(true);
     942            this._delegate.setScriptSourceIsBeingEdited(false);
    943943        }
    944944        this._commitEditingInProgress = true;
  • trunk/Source/WebCore/inspector/front-end/inspector.js

    r86745 r86932  
    691691    }
    692692
    693     if (WebInspector.isEditingAnyField())
    694         return;
    695 
    696693    if (this.currentFocusElement && this.currentFocusElement.handleKeyEvent) {
    697694        this.currentFocusElement.handleKeyEvent(event);
     
    715712        return;
    716713    }
     714
     715    if (WebInspector.isEditingAnyField())
     716        return;
    717717
    718718    var isMac = WebInspector.isMac();
Note: See TracChangeset for help on using the changeset viewer.