Page MenuHomestyx hydra

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
Tue, Feb 24, 9:50 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
809162
Default Alt Text
KeyboardShortcut.js (724 B)

Event Timeline