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

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

Issue 218613013: DevTools: Decouple shortcuts from actions, introduce shortcut contexts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments, handle Dialog key events in the glasspane keydown handler 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
« no previous file with comments | « Source/devtools/front_end/SettingsScreen.js ('k') | Source/devtools/front_end/TabbedPane.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/SourceFrame.js
diff --git a/Source/devtools/front_end/SourceFrame.js b/Source/devtools/front_end/SourceFrame.js
index 937d52e22e8df9fac3a19e6336c78716f4789b16..c4ba20c82f765d825cbe1dc78ebfd3f435be621e 100644
--- a/Source/devtools/front_end/SourceFrame.js
+++ b/Source/devtools/front_end/SourceFrame.js
@@ -425,6 +425,12 @@ WebInspector.SourceFrame.prototype = {
_editorFocused: function()
{
this._resetCurrentSearchResultIndex();
+ WebInspector.context.setFlavor(WebInspector.SourceFrame, this);
+ },
+
+ _editorBlurred: function()
+ {
+ WebInspector.context.setFlavor(WebInspector.SourceFrame, null);
pfeldman 2014/04/17 14:18:21 Lets do it later.
apavlov 2014/04/17 14:23:20 Done.
},
_resetCurrentSearchResultIndex: function()
@@ -839,6 +845,11 @@ WebInspector.TextEditorDelegateForSourceFrame.prototype = {
this._sourceFrame._editorFocused();
},
+ editorBlurred: function()
+ {
+ this._sourceFrame._editorBlurred();
+ },
+
populateLineGutterContextMenu: function(contextMenu, lineNumber)
{
this._sourceFrame.populateLineGutterContextMenu(contextMenu, lineNumber);
« no previous file with comments | « Source/devtools/front_end/SettingsScreen.js ('k') | Source/devtools/front_end/TabbedPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698