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

Side by Side Diff: Source/devtools/front_end/ForwardedInputEventHandler.js

Issue 225873004: DevTools: Handle the F8 shortcut forwarded from the inspected page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add FIXME 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/InspectorFrontendAPI.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @constructor
7 */
8 WebInspector.ForwardedInputEventHandler = function()
9 {
10 }
11
12 WebInspector.ForwardedInputEventHandler.prototype = {
13 /**
14 * @param {string} type
15 * @param {string} keyIdentifier
16 * @param {number} keyCode
17 * @param {number} modifiers
18 */
19 keyEventReceived: function(type, keyIdentifier, keyCode, modifiers)
20 {
21 // FIXME: Wire this to the shortcut/action subsystem.
22 if (type === "keydown" && keyIdentifier === "F8" && !modifiers)
23 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorVie w.showPanel("sources")).togglePause();
24 }
25 }
26
27 /** @type {!WebInspector.ForwardedInputEventHandler} */
28 WebInspector.forwardedEventHandler = new WebInspector.ForwardedInputEventHandler ();
OLDNEW
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/InspectorFrontendAPI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698