CmdFromKey(key_value)

Returns the string name of the Source Insight command currently mapped to key_value. The command returned is the name of the command that gets invoked when the user presses key_value.

key_value is a numeric keyboard value that is returned by GetKey and KeyFromChar.

You can use CharFromKey to convert a key_value into a character.

Example:

key = GetKey();
cmd_name = CmdFromKey(key);
msg(“That key will invoke the @cmd@ command.”);