Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js

Issue 2859623002: DevTools: Migrate from -webkit-user-modify to contenteditable (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
index aaf6894194f82c6074c94e98a11058c63acb9a4c..549ae57636765642cd513a19fde182d1ffd0b2a1 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
@@ -39,6 +39,7 @@ Resources.DatabaseQueryView = class extends UI.VBox {
this._promptContainer.appendChild(UI.Icon.create('smallicon-text-prompt', 'prompt-icon'));
this._promptElement = this._promptContainer.createChild('div');
this._promptElement.className = 'database-query-prompt';
+ this._promptElement.setAttribute('contenteditable', 'plaintext-only');
this._promptElement.addEventListener('keydown', this._promptKeyDown.bind(this), true);
this._prompt = new UI.TextPrompt();

Powered by Google App Engine
This is Rietveld 408576698