Skip to main content
Inspiring
July 11, 2019
Answered

Adobe Animate Hotkey File Keycodes

  • July 11, 2019
  • 2 replies
  • 2849 views

I'm trying to set Hide Panels to the Tab key, but this can't be done in the Keyboard Shortcuts Menu.

I located my custom Shortcut File in C:\Users\[Username]\Appdata\Roaming\Adobe\Animate\2018\Shortcuts > [Filename].xml

Unfortunately, for any key that is not a letter, Adobe uses some proprietary keycode values instead of the standard Windows ones. For example, F4 is 10 where it would normally be 115. Is there a lost somewhere of Abode's keycode calues for Windows?

    This topic has been closed for replies.
    Correct answer murkalurk2099

    In case anyone else is wondering, I used the old fashioned heuristic technique and found some things out.

    Shortcuts that use character keys look like this:

    <keycmd>

    <cmd>Tool.FreeTransform</cmd>

    <uchar>Q</uchar>

    <mod>

    <shift/>

    </mod>

    </keycmd>

    <keycmd> and </keycmd> are respectively used to open and close all functions in the shortcut file. <uchar>LETTER</uchar> are used to indicate a character key, with the letter of the button placed in between. In the above example, the function will ensure that pressing Q will switch the tool selection to the Free Transform Tool. The <mod><shift/></mod> strings ensure that if multiple tools are mapped to Q, pressing Q again would cause the tool selection to switch the next tool sharing that shortcut (Shift is a "modifier" key).

    Shortcuts that use system keys look like this:

    <keycmd>

    <cmd>Goto.First</cmd>

    <key>36</key>

    </keycmd>

    For system keys, instead of the <uchar> strings, <key>NUMBER</key> is used and the "keycode" of the button must be placed in between. And this is where things get tricky because the keycodes are specific to Adobe Animate. In the above example keycode 36 refers to the HOME key, pressing it will, as the code suggests, execute Go To: First (Go to the first scene of the movie).

    <keycmd>

    <cmd>Goto.ReturnFocusToStage</cmd>

    <key>36</key>

    <mod>

    <cmdkey/>

    <alt/>

    </mod>

    </keycmd>

    In the above example, pressing CTRL/CMD + ALT + HOME will, as the code suggests, execute Go To: Return Focus to Stage. So it will be important to remember that system keys assigned to keycodes 1-9 can be very easily confused with the character keys 1-9 (the number keys near the top of the keyboard), it is only the <uchar> or <key> strings that differentiate between them.

    Some functions have a special string added:

    <keycmd>

    <cmd>ScreenMode.ScreenModeNormal</cmd>

    <key>6</key>

    <protected/>

    </keycmd>

    Keycode 6 refers to the ESC key. The <protected/> string will prevent users from changing the assignment of the ESC key within Animate's Keyboard Shortcut Menu (which also prevents you from assigning any other key to that command as well). If you wish to override this, you merely have to remove the <protected/> string from the function and save the XML file.

    Here is the list of system key keycodes that I have discovered:

    Adobe KeycodeKeyboard ButtonAdobe KeycodeKeyboard ButtonAdobe KeycodeKeyboard Button
    1SPACE21-41-
    2BACKSPACE22-42LEFT ARROW
    3TAB23-43RIGHT ARROW
    4RETURN24-44UP ARROW
    5ENTER25-45DOWN ARROW
    6ESCAPE26-46-
    7F127-47-
    8F228-48-
    9F329-49-
    10F430-50SHIFT
    11F531-51-
    12F632-52-
    13F733PAUSE53-
    14F834INSERT54-
    15F935DELETE55-
    16F1036HOME56-
    17F1137END57-
    18F1238PAGE UP58-
    19-39PAGE DOWN59-
    20-40-60-

    I stopped when I reached 108, there are no usable keycodes after 50, and I am not sure what purpose there is in using the SHIFT key as a shortcut.

    2 replies

    murkalurk2099AuthorCorrect answer
    Inspiring
    July 12, 2019

    In case anyone else is wondering, I used the old fashioned heuristic technique and found some things out.

    Shortcuts that use character keys look like this:

    <keycmd>

    <cmd>Tool.FreeTransform</cmd>

    <uchar>Q</uchar>

    <mod>

    <shift/>

    </mod>

    </keycmd>

    <keycmd> and </keycmd> are respectively used to open and close all functions in the shortcut file. <uchar>LETTER</uchar> are used to indicate a character key, with the letter of the button placed in between. In the above example, the function will ensure that pressing Q will switch the tool selection to the Free Transform Tool. The <mod><shift/></mod> strings ensure that if multiple tools are mapped to Q, pressing Q again would cause the tool selection to switch the next tool sharing that shortcut (Shift is a "modifier" key).

    Shortcuts that use system keys look like this:

    <keycmd>

    <cmd>Goto.First</cmd>

    <key>36</key>

    </keycmd>

    For system keys, instead of the <uchar> strings, <key>NUMBER</key> is used and the "keycode" of the button must be placed in between. And this is where things get tricky because the keycodes are specific to Adobe Animate. In the above example keycode 36 refers to the HOME key, pressing it will, as the code suggests, execute Go To: First (Go to the first scene of the movie).

    <keycmd>

    <cmd>Goto.ReturnFocusToStage</cmd>

    <key>36</key>

    <mod>

    <cmdkey/>

    <alt/>

    </mod>

    </keycmd>

    In the above example, pressing CTRL/CMD + ALT + HOME will, as the code suggests, execute Go To: Return Focus to Stage. So it will be important to remember that system keys assigned to keycodes 1-9 can be very easily confused with the character keys 1-9 (the number keys near the top of the keyboard), it is only the <uchar> or <key> strings that differentiate between them.

    Some functions have a special string added:

    <keycmd>

    <cmd>ScreenMode.ScreenModeNormal</cmd>

    <key>6</key>

    <protected/>

    </keycmd>

    Keycode 6 refers to the ESC key. The <protected/> string will prevent users from changing the assignment of the ESC key within Animate's Keyboard Shortcut Menu (which also prevents you from assigning any other key to that command as well). If you wish to override this, you merely have to remove the <protected/> string from the function and save the XML file.

    Here is the list of system key keycodes that I have discovered:

    Adobe KeycodeKeyboard ButtonAdobe KeycodeKeyboard ButtonAdobe KeycodeKeyboard Button
    1SPACE21-41-
    2BACKSPACE22-42LEFT ARROW
    3TAB23-43RIGHT ARROW
    4RETURN24-44UP ARROW
    5ENTER25-45DOWN ARROW
    6ESCAPE26-46-
    7F127-47-
    8F228-48-
    9F329-49-
    10F430-50SHIFT
    11F531-51-
    12F632-52-
    13F733PAUSE53-
    14F834INSERT54-
    15F935DELETE55-
    16F1036HOME56-
    17F1137END57-
    18F1238PAGE UP58-
    19-39PAGE DOWN59-
    20-40-60-

    I stopped when I reached 108, there are no usable keycodes after 50, and I am not sure what purpose there is in using the SHIFT key as a shortcut.

    Inspiring
    July 12, 2019

    Also, if you are modifying the XML file while Animate is open and the Keyboard Shortcuts Menu is open, when you close the Shortcuts Menu, it will overwrite the XML file with a version that is cached your computer RAM, and any changes you were working on in the XML file will be lost.

    -You must close the Shortcuts Menu before editing the XML file to ensure you do not lose any changes when the Shortcuts Menu closes.

    -After you have saved the changes in the XML file, you must open the Shortcuts Menu in Animate, then click OK to overwrite the cached version in the RAM.

    -If you open the Shortcuts menu after modifying the XML and then click CANCEL, Animate will overwrite the XML in AppData/Roaming with whatever version is running in the RAM, undoing any of your saved changes.

    Participant
    August 20, 2024

    Thanks a bunch for this. I was going crazy trying to make SPACE play the movie, and it was impossible to add SPACE as a key through Adobe's change keys windows. Such an obvious oversight.

    n. tilcheff
    Legend
    July 11, 2019

    Hi mate,

    I have, fortunately, put together a little PDF file with the keycodes before they deleted all the Macromedia help documentation from the web.

    I'm not sure if you'd be able to use Tab though, but you can try.

    Here is a link to the PDF.

    If you reorganise the shortcut xml file by key, it will be easier to maintain in a text editor.

    That is what I do with our heavily modified set.

    Here is also an article about CS shortcuts I wrote a long time ago. It is very different compared to CC, but some of the limitations still apply. Understanding Flash 8-CS6 shortcut file | electric dog :: flanimate power tools

    Good luck!

    NT

    Nick - Character Designer and Animator, Flash user since 1998 | Member of the Flanimate Power Tools team - extensions for character animation
    Inspiring
    July 12, 2019

    Some of the codes on your PDF are correct, some were missing, I ended up creating a keyboard macro that automatically went through the number one at a time and I went all the way up to 108 before stopping. The list I made is in a separate reply.

    n. tilcheff
    Legend
    July 12, 2019

    Thanks very much for the post.

    I will update the PDF at some point.

    CC shortcuts have never been a big concern for us as they are much more flexible to modify via the interface.

    Shift, Alt and Control are of course modifier keys.

    Nick - Character Designer and Animator, Flash user since 1998 | Member of the Flanimate Power Tools team - extensions for character animation