Keyboard shortcuts

Summary

Keyboard commands with syntactic sugar.

Status

API status: general
Web resource key: com.atlassian.plugins.shortcuts.atlassian-shortcuts-plugin:shortcuts
AMD Module key: require('atlassian/shortcuts/js/when-i-type')

Migration

This functionality has moved from AUI to the atlassian-keyboard-shortcuts plugin. To use keyboard shortcuts, instead depend on the web-resource:

com.atlassian.plugins.shortcuts.atlassian-shortcuts-plugin:shortcuts

The old web-resource com.atlassian.auiplugin:aui-keyboard-shortcuts remains as a deprecated alias and will be removed in a future version.

Examples

Type "z" then "e" to execute some simple JavaScript.

Code

JavaScript

JavaScript methods

  • click
  • execute
  • followLink
  • fromJSON
  • goTo
  • moveToAndClick
  • moveToAndFocus
  • moveToNextItem
  • moveToPrevItem
  • or

fromJSON creates keyboard commands and their actions from json data. Format: