Menu Binding (aka Configuring Keyboard Shortcuts)

Even though TKE has the powerful command launcher for accessing menu command functionality, sometimes it’s more convenient and faster to use a keyboard shortcut to access the same functionality.  TKE’s default shortcuts (otherwise known as menu bindings) are fairly minimal by design.  To help make shortcuts more meaningful to the user, menu bindings can be assigned via the “Edit / Menu Bindings / Edit User” menu command.

Running this command will display the current menu binding list in the editor.

Binding Syntax

Each menu binding is a two value element where the first element is the path to the menu command to bind and the second element is the keyboard shortcut to use to run the command.

The menu command string should be enclosed in curly brackets (i.e., {…}) and should match the menu command exactly (including spaces, if required).  The menu command string must also contain the path to the menu command, joined with the ‘/’ character.

The keyboard shortcut must contain one or more modifiers followed by the name of a single key on the keyboard, joined with the ‘-‘ character.  The following is a list of the available modifiers:

  • Ctrl
  • Alt
  • Cmd or Super
  • Shift

If the single key that you want to use in the keyboard binding is a non-printable character, the following values can be used:

  • Space
  • Return
  • Up
  • Down
  • Left
  • Right
  • Tab
  • Home
  • End
  • BackSpace

If you have a keyboard with different keys, consult the Tk keysyms at for the correct value.

After the required changes have been made, simply save the file, the menu bindings will be immediately available within the menus — no restart required.  It’s that easy to customize the TKE menu bindings and make it’s power fit in your own unique workflow.

To see more information about the TKE code editor, visit

Menu Binding (aka Configuring Keyboard Shortcuts)