Arbortext Command Language > Functions by Alphabetical Listing > cmd_key
  
cmd_key
cmd_key(alias[, keymap])
This function returns the keyboard shortcut bound to the command alias specified by alias for the keyboard shortcut specified by keymap. The result is a string of the same form as the keyname argument for the map command (for example, Ctrl+Shift+A) or key_cmd function.
keymap is the same as the window argument to map and is a window class (for example, edit, cmd, helpwin), a window name as returned by the window_name function, or a user-defined keyboard shortcut identified by the prefix character @ (for example, cmd_key("FileSave", "@panel")). If keymap is omitted, the keyboard shortcut associated with the current window is used.
The function returns a null string if alias is not bound to any keys in the specified keyboard shortcut .
Related Topics
map command
show cmdkeys
key_cmd
Keyboard Shortcuts