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); |
} |
} |