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 // 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
(); |
OLD | NEW |