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

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

Issue 311193002: DevTools: Implement debugger pause-resume through an action (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comment Created 6 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
« no previous file with comments | « no previous file | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ForwardedInputEventHandler.js
diff --git a/Source/devtools/front_end/ForwardedInputEventHandler.js b/Source/devtools/front_end/ForwardedInputEventHandler.js
index ce053d71260e6e7e4ea1513f73b80da25fe9ea68..93cc2569029f9a706e7e5b18f7f7c47d3719ab8f 100644
--- a/Source/devtools/front_end/ForwardedInputEventHandler.js
+++ b/Source/devtools/front_end/ForwardedInputEventHandler.js
@@ -21,11 +21,9 @@ WebInspector.ForwardedInputEventHandler.prototype = {
if (type !== "keydown")
return;
- // FIXME: Wire this to the shortcut/action subsystem.
- if (keyIdentifier === "F8" && !modifiers)
- /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorView.showPanel("sources")).togglePause();
-
+ WebInspector.context.setFlavor(WebInspector.ShortcutRegistry.ForwardedShortcut, WebInspector.ShortcutRegistry.ForwardedShortcut.instance)
WebInspector.shortcutRegistry.handleKey(WebInspector.KeyboardShortcut.makeKey(keyCode, modifiers), keyIdentifier);
+ WebInspector.context.setFlavor(WebInspector.ShortcutRegistry.ForwardedShortcut, null);
}
}
« no previous file with comments | « no previous file | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698