diff options
Diffstat (limited to 'third_party/WebKit/Source')
-rw-r--r-- | third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js | 6 | ||||
-rw-r--r-- | third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js b/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js index f4c16c9..a6e2903 100644 --- a/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js +++ b/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js @@ -398,8 +398,8 @@ WebInspector.SuggestBox.prototype = { return this.pageUpKeyPressed(); case "PageDown": return this.pageDownKeyPressed(); - case "U+0009": // Tab - return this.tabKeyPressed(); + case "Enter": + return this.enterKeyPressed(); } return false; }, @@ -441,7 +441,7 @@ WebInspector.SuggestBox.prototype = { /** * @return {boolean} */ - tabKeyPressed: function() + enterKeyPressed: function() { var hasSelectedItem = !!this._selectedElement; this.acceptSuggestion(); diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js index 06bdb2a..f882cfd 100644 --- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js +++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js @@ -285,6 +285,9 @@ WebInspector.TextPrompt.prototype = { delete this._needUpdateAutocomplete; switch (event.keyIdentifier) { + case "U+0009": // Tab + handled = this.tabKeyPressed(event); + break; case "Left": case "Home": this._removeSuggestionAids(); |