Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F36276562
KeyboardShortcut.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
724 B
Subscribers
None
KeyboardShortcut.js
View Options
/**
* @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
Details
Attached
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
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment