Error handler for key commands that simply emits the error. Local INVALID, PROPAGATE, CHAIN, HALT = - 1, 0, 1, 2 Local function clear_key_seq() for i = 1, #keychain do keychain = nil end end _index = keychain, _newindex = function() error( 'read-only table ') end, but a combination of `Ctrl Shift Tab` has the key sequence `ctrl shift \t`. a combination of `Ctrl Alt Shift A` has the key sequence `ctrl alt A` on Windows and Linux, normally insert if the "Control", "Alt", and "Command" modifiers were not held down. The string representation of key values less than 255 is the character that Textadept would Modifier | Linux / Win32 | macOS | Terminal These modifiers have the following string representations: On macOS they are "Control" (`^`), "Alt/Option" (`⌥`), "Command" Modifier keys are "Control", "Shift", and "Alt" on Windows, Linux, BSD, Key sequences are strings built from an ordered combination of modifier keys and the key's but fall back to word autocompletion if the first command fails.) (This is useful for language modules to override commands like autocompletion, if the command returns the boolean value `false`, Textadept also runs the lower-priority two commands with the same key sequence, Textadept runs the language-specific one. bindings have priority, followed by the ones in the global table. If no key mode is active, language-specific key in the current key mode to have priority. searching for a command to run based on a key sequence, Textadept considers key bindings The latter is part of what is called a "key chain", to be discussed below. table of key sequences and commands, or a key sequence with a table of more sequences and *lexers/* directory) with a table of key sequences and commands, a string key mode with a either a string key sequence and its associated command, a string lexer name (from the Define key bindings in the global `keys` table in key-value pairs.
0 Comments
Leave a Reply. |