Changeset 99557 in webkit


Ignore:
Timestamp:
Nov 8, 2011, 5:34:38 AM (14 years ago)
Author:
apavlov@chromium.org
Message:

Web Inspector: Do not hide SuggestBox if typed-in string in the middle of input equals one of suggestions
https://bugs.webkit.org/show_bug.cgi?id=71797

Reviewed by Yury Semikhatsky.

  • inspector/front-end/TextPrompt.js:

(WebInspector.TextPrompt.prototype.onKeyDown):
(WebInspector.TextPrompt.prototype.complete):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r99556 r99557  
     12011-11-08  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Web Inspector: Do not hide SuggestBox if typed-in string in the middle of input equals one of suggestions
     4        https://bugs.webkit.org/show_bug.cgi?id=71797
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        * inspector/front-end/TextPrompt.js:
     9        (WebInspector.TextPrompt.prototype.onKeyDown):
     10        (WebInspector.TextPrompt.prototype.complete):
     11
    1122011-11-08  Andreas Kling  <kling@webkit.org>
    213
  • trunk/Source/WebCore/inspector/front-end/TextPrompt.js

    r99459 r99557  
    229229        case "Right":
    230230        case "End":
    231             if (this.isSuggestBoxVisible())
     231            if (this.isSuggestBoxVisible() && this.isCaretAtEndOfPrompt())
    232232                handled = this._suggestBox.tabKeyPressed(event);
    233233            else {
     
    360360        if (!auto && !isEmptyInput && !selectionRange.commonAncestorContainer.isDescendant(this._element))
    361361            shouldExit = true;
    362         if (auto && !this.isCaretAtEndOfPrompt() && !force)
     362        if (auto && !this.isCaretAtEndOfPrompt() && !this._suggestBox && !force)
    363363            shouldExit = true;
    364364        if (shouldExit) {
Note: See TracChangeset for help on using the changeset viewer.