[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 /** 2 * @provides phabricator-keyboard-shortcut 3 * @requires javelin-install 4 * javelin-util 5 * phabricator-keyboard-shortcut-manager 6 * @javelin 7 */ 8 9 /** 10 * Register a keyboard shortcut, which does something when the user presses a 11 * key with no other inputs focused. 12 */ 13 JX.install('KeyboardShortcut', { 14 15 construct : function(keys, description) { 16 keys = JX.$AX(keys); 17 this.setKeys(keys); 18 this.setDescription(description); 19 }, 20 21 properties : { 22 keys : null, 23 description : null, 24 handler : null, 25 tooltipHandler : null 26 }, 27 28 members : { 29 register : function() { 30 JX.KeyboardShortcutManager.getInstance().addKeyboardShortcut(this); 31 return this; 32 } 33 } 34 35 });
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |