Don't trim whitespace when looking for the current match, this prevents tabbing throu...
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Apr 2008 20:58:58 +0000 (20:58 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Apr 2008 20:58:58 +0000 (20:58 +0000)
Reviewed by Adam Roben.

* page/inspector/TextPrompt.js: Removed a trimTrailingWhitespace() call.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31646 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/inspector/TextPrompt.js

index ea649ae..28dafea 100644 (file)
@@ -1,5 +1,14 @@
 2008-04-04  Timothy Hatcher  <timothy@apple.com>
 
+        Don't trim whitespace when looking for the current match, this prevents
+        tabbing through matches in the up-coming Database Query view.
+
+        Reviewed by Adam Roben.
+
+        * page/inspector/TextPrompt.js: Removed a trimTrailingWhitespace() call.
+
+2008-04-04  Timothy Hatcher  <timothy@apple.com>
+
         Factor out the Console text completion and command history into
         a new TextPrompt object. This TextPrompt object will be used later
         other parts of the Inspector that need text completion and history.
index a132dd4..99ad77f 100644 (file)
@@ -146,7 +146,7 @@ WebInspector.TextPrompt.prototype = {
         if (completions.length === 1 || selection.isCollapsed || auto) {
             var completionText = completions[0];
         } else {
-            var currentText = fullWordRange.toString().trimTrailingWhitespace();
+            var currentText = fullWordRange.toString();
 
             var foundIndex = null;
             for (var i = 0; i < completions.length; ++i) {