diff options
author | Steve Block <steveblock@google.com> | 2010-02-02 14:57:50 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-02-04 15:06:55 +0000 |
commit | d0825bca7fe65beaee391d30da42e937db621564 (patch) | |
tree | 7461c49eb5844ffd1f35d1ba2c8b7584c1620823 /WebCore/inspector/front-end/DatabaseQueryView.js | |
parent | 3db770bd97c5a59b6c7574ca80a39e5a51c1defd (diff) | |
download | external_webkit-d0825bca7fe65beaee391d30da42e937db621564.zip external_webkit-d0825bca7fe65beaee391d30da42e937db621564.tar.gz external_webkit-d0825bca7fe65beaee391d30da42e937db621564.tar.bz2 |
Merge webkit.org at r54127 : Initial merge by git
Change-Id: Ib661abb595522f50ea406f72d3a0ce17f7193c82
Diffstat (limited to 'WebCore/inspector/front-end/DatabaseQueryView.js')
-rw-r--r-- | WebCore/inspector/front-end/DatabaseQueryView.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/WebCore/inspector/front-end/DatabaseQueryView.js b/WebCore/inspector/front-end/DatabaseQueryView.js index e85af66..2656842 100644 --- a/WebCore/inspector/front-end/DatabaseQueryView.js +++ b/WebCore/inspector/front-end/DatabaseQueryView.js @@ -31,6 +31,7 @@ WebInspector.DatabaseQueryView = function(database) this.element.addStyleClass("storage-view"); this.element.addStyleClass("query"); + this.element.addStyleClass("monospace"); this.element.tabIndex = 0; this.element.addEventListener("selectstart", this._selectStart.bind(this), false); @@ -38,7 +39,7 @@ WebInspector.DatabaseQueryView = function(database) this.promptElement = document.createElement("div"); this.promptElement.className = "database-query-prompt"; this.promptElement.appendChild(document.createElement("br")); - this.promptElement.handleKeyEvent = this._promptKeyDown.bind(this); + this.promptElement.addEventListener("keydown", this._promptKeyDown.bind(this), true); this.element.appendChild(this.promptElement); this.prompt = new WebInspector.TextPrompt(this.promptElement, this.completions.bind(this), " "); @@ -98,8 +99,6 @@ WebInspector.DatabaseQueryView.prototype = { this._enterKeyPressed(event); return; } - - this.prompt.handleKeyEvent(event); }, _selectStart: function(event) |