Page MenuHome GnuPG

KeyboardShortcut.js
No OneTemporary

KeyboardShortcut.js

/**
* @provides phabricator-keyboard-shortcut
* @requires javelin-install
* javelin-util
* phabricator-keyboard-shortcut-manager
* @javelin
*/
/**
* Register a keyboard shortcut, which does something when the user presses a
* key with no other inputs focused.
*/
JX.install('KeyboardShortcut', {
construct : function(keys, description) {
keys = JX.$AX(keys);
this.setKeys(keys);
this.setDescription(description);
},
properties : {
keys : null,
description : null,
handler : null,
tooltipHandler : null
},
members : {
register : function() {
JX.KeyboardShortcutManager.getInstance().addKeyboardShortcut(this);
return this;
}
}
});

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 22, 6:46 PM (1 d, 2 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
14/96/ce17142cefea0919a1253a4dfc99

Event Timeline