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

Unified Diff: Source/devtools/front_end/Dialog.js

Issue 218613013: DevTools: Decouple shortcuts from actions, introduce shortcut contexts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments - take 1 Created 6 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: Source/devtools/front_end/Dialog.js
diff --git a/Source/devtools/front_end/Dialog.js b/Source/devtools/front_end/Dialog.js
index 7e9406dbf5a08d2452e8e81826cae1f405448e38..51ab033e651873558ef035440170c580877a1ddb 100644
--- a/Source/devtools/front_end/Dialog.js
+++ b/Source/devtools/front_end/Dialog.js
@@ -56,6 +56,7 @@ WebInspector.Dialog = function(relativeToElement, delegate)
this._position();
this._delegate.focus();
+ WebInspector.context.setFlavor(WebInspector.Dialog, this);
pfeldman 2014/04/17 10:40:25 I don't think this makes sense.
apavlov 2014/04/17 12:42:22 Done.
}
/**
@@ -95,6 +96,7 @@ WebInspector.Dialog.prototype = {
delete WebInspector.Dialog._instance;
this._glassPane.dispose();
+ WebInspector.context.setFlavor(WebInspector.Dialog, null);
},
_onGlassPaneFocus: function(event)

Powered by Google App Engine
This is Rietveld 408576698