OLD | NEW |
---|---|
(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 if (type === "keydown" && keyIdentifier === "F8" && !modifiers) | |
pfeldman
2014/04/14 13:04:02
FIXME: wire to action system
| |
22 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorVie w.showPanel("sources")).togglePause(); | |
23 } | |
24 } | |
25 | |
26 /** @type {!WebInspector.ForwardedInputEventHandler} */ | |
27 WebInspector.forwardedEventHandler = new WebInspector.ForwardedInputEventHandler (); | |
OLD | NEW |