Title: [99557] trunk/Source/WebCore
Revision
99557
Author
[email protected]
Date
2011-11-08 05:34:38 -0800 (Tue, 08 Nov 2011)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (99556 => 99557)


--- trunk/Source/WebCore/ChangeLog	2011-11-08 13:23:24 UTC (rev 99556)
+++ trunk/Source/WebCore/ChangeLog	2011-11-08 13:34:38 UTC (rev 99557)
@@ -1,3 +1,14 @@
+2011-11-08  Alexander Pavlov  <[email protected]>
+
+        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):
+
 2011-11-08  Andreas Kling  <[email protected]>
 
         CSSGradientValue: Devirtualize createGradient().

Modified: trunk/Source/WebCore/inspector/front-end/TextPrompt.js (99556 => 99557)


--- trunk/Source/WebCore/inspector/front-end/TextPrompt.js	2011-11-08 13:23:24 UTC (rev 99556)
+++ trunk/Source/WebCore/inspector/front-end/TextPrompt.js	2011-11-08 13:34:38 UTC (rev 99557)
@@ -228,7 +228,7 @@
             break;
         case "Right":
         case "End":
-            if (this.isSuggestBoxVisible())
+            if (this.isSuggestBoxVisible() && this.isCaretAtEndOfPrompt())
                 handled = this._suggestBox.tabKeyPressed(event);
             else {
                 handled = this.acceptAutoComplete();
@@ -359,7 +359,7 @@
             shouldExit = true;
         if (!auto && !isEmptyInput && !selectionRange.commonAncestorContainer.isDescendant(this._element))
             shouldExit = true;
-        if (auto && !this.isCaretAtEndOfPrompt() && !force)
+        if (auto && !this.isCaretAtEndOfPrompt() && !this._suggestBox && !force)
             shouldExit = true;
         if (shouldExit) {
             if (this.isSuggestBoxVisible())
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to