Type "z" then "e" to execute some simple JavaScript.
Keyboard shortcuts
Summary
Keyboard commands with syntactic sugar.
Status
API status: | general |
---|---|
Web resource key: |
com.atlassian.auiplugin:aui-keyboard-shortcuts
|
AMD Module key: | N/A |
Experimental API: | 3 |
Examples
Code
JavaScript
AخA
AJS.whenIType('ze').execute(function () {
alert('I have executed.');
});
AJS.whenIType('c').click('#create');
AJS.whenIType('gh').or('gd').goTo('https://example.com/');
AJS.whenIType('n').moveToNextItem('.selector');
AJS.whenIType('p').moveToPrevItem('.selector');
JavaScript methods
- click
- execute
- followLink
- fromJSON
- goTo
- moveToAndClick
- moveToAndFocus
- moveToNextItem
- moveToPrevItem
- or
fromJSON
creates keyboard commands and their actions from json data. Format:
[
{
"keys":[["g", "d"]],
"context":"global",
"op":"followLink",
"param":"#home_link"
}, {
"keys":[["g", "i"]],
"context":"global",
"op":"followLink",
"param":"#find_link"
}, {
"keys":[["/"]],
"context":"global",
"op":"moveToAndFocus",
"param":"#quickSearchInput"
}, {
"keys":[["c"]],
"context":"global",
"op":"moveToAndClick",
"param":"#create_link"
}
]