General Interface is an open source project hosted by the Dojo Foundation

Allowed Keys for Hot Keys

When assigning a hot key to a menu or a button, use the following string format:

[ctrl+][alt+][shift+]n

The modifiers (ctrl, alt, shift) are optional and zero to three modifiers can be used. The value n is required as the last value and can be any of the following keys:

  • Alpha numeric characters: a-z, 0-9
  • Punctuation keys in the string
    • ; (semi-colon)
    • , (comma)
    • . (period)
    • / (forward slash)
    • \ (back slash)
    • ' (single quote)
    • [] (open and close brackets)
    • - (hyphen)
    • = (equals sign)
    • ` (back tick)
  • Function keys: F1-F15
  • Special keys: enter, esc, tab, del, space, backspace, up, down, left, right, insert, home, end, pgup, pgdn
Use lowercase when typing hot key values in JavaScript code or in properties. For example, ctrl+alt+b.

Hot Key Examples:

  • ctrl+shift+enter
  • ctrl+6
  • ctrl+alt+s
  • ctrl+,
Although hot keys can be reused in your application, don't reuse them within the same scope. For example, don't reuse the same hot key in the same dialog.
Some hot keys could be problematic. For example, if the hot key for a button is b or shift+b and the end user is typing b or a capital B (shift+b) in a text field, the button is activated instead. Choose your hot keys carefully.

Contents

Searching General Interface Docs

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.