diff options
Diffstat (limited to 'WebCore/inspector/front-end/TextPrompt.js')
-rw-r--r-- | WebCore/inspector/front-end/TextPrompt.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/inspector/front-end/TextPrompt.js b/WebCore/inspector/front-end/TextPrompt.js index 2230eaa..8554a28 100644 --- a/WebCore/inspector/front-end/TextPrompt.js +++ b/WebCore/inspector/front-end/TextPrompt.js @@ -33,6 +33,7 @@ WebInspector.TextPrompt = function(element, completions, stopCharacters) this.completionStopCharacters = stopCharacters; this.history = []; this.historyOffset = 0; + this.element.addEventListener("keydown", this._onKeyDown.bind(this), true); } WebInspector.TextPrompt.prototype = { @@ -53,7 +54,7 @@ WebInspector.TextPrompt.prototype = { this.moveCaretToEndOfPrompt(); }, - handleKeyEvent: function(event) + _onKeyDown: function(event) { function defaultAction() { |