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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Dialog.js

Issue 2094873002: DevTools: fix deepActiveElement and focus on Dialog when document blurs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-added buttons as default elements and fix deepActiveElement and dialog focus Created 4 years, 6 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/ui/Dialog.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js b/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js
index a15b39a0ccea3dff0f1e678ed7805db4dbfe87d2..ea802e7262d229e5ac74b1919a90fcd7454bac06 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js
@@ -50,7 +50,6 @@ WebInspector.Dialog = function()
}
/**
- * TODO(dgozman): remove this method (it's only used for shortcuts handling).
* @return {boolean}
*/
WebInspector.Dialog.hasInstance = function()
@@ -58,6 +57,12 @@ WebInspector.Dialog.hasInstance = function()
return !!WebInspector.Dialog._instance;
}
+WebInspector.Dialog.focus = function()
+{
+ if (WebInspector.Dialog._instance)
+ WebInspector.Dialog._instance.focus();
+}
+
WebInspector.Dialog.prototype = {
/**
* @override

Powered by Google App Engine
This is Rietveld 408576698