diff options
author | 2020-08-21 15:20:51 -0400 | |
---|---|---|
committer | 2020-08-21 15:20:51 -0400 | |
commit | f275e0054dbfc6d1604031d93ac08d376c9029fb (patch) | |
tree | c920c4f301d1c5d6b8f8d8df2a652346acbf6240 /modules | |
parent | 3dbcac857858af49883d782f7d39f5394d8ea1f0 (diff) | |
download | textadept-f275e0054dbfc6d1604031d93ac08d376c9029fb.tar.gz textadept-f275e0054dbfc6d1604031d93ac08d376c9029fb.zip |
Added `keys.KEYSYMS` representations to LuaDoc.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lua/ta_api | 2 | ||||
-rw-r--r-- | modules/lua/ta_tags | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/lua/ta_api b/modules/lua/ta_api index e5706b26..8b8e51dc 100644 --- a/modules/lua/ta_api +++ b/modules/lua/ta_api @@ -150,7 +150,7 @@ IV_LOOKFORWARD view.IV_LOOKFORWARD (number, Read-only)\n IV_NONE view.IV_NONE (number, Read-only)\n IV_REAL view.IV_REAL (number, Read-only)\n KEYPRESS events.KEYPRESS (string)\nEmitted when pressing a key.\nIf any handler returns `true`, the key is not inserted into the buffer.\nArguments:\n\n* _`code`_: The numeric key code.\n* _`shift`_: The "Shift" modifier key is held down.\n* _`ctrl`_: The "Control" modifier key is held down.\n* _`alt`_: The "Alt"/"Option" modifier key is held down.\n* _`cmd`_: The "Command" modifier key on macOS is held down.\n* _`caps_lock`_: The "Caps Lock" modifier is on. -KEYSYMS keys.KEYSYMS (table)\nLookup table for string representations of key codes higher than 255.\nKey codes can be identified by temporarily uncommenting the `print()`\nstatements in *core/keys.lua*. +KEYSYMS keys.KEYSYMS (table)\nLookup table for string representations of key codes higher than 255.\nKey codes can be identified by temporarily uncommenting the `print()`\nstatements in *core/keys.lua*.\nRecognized codes are: esc, \b, \t, \\n, down, up, left, right, home, end,\npgup, pgdn, del, ins, and f1-f12.\nThe GUI version also recognizes: kpenter, kphome, kpend, kpleft, kpup,\nkpright, kpdown, kppgup, kppgdn, kpmul, kpadd, kpsub, kpdiv, kpdec, and\nkp0-kp9. KEYWORD lexer.KEYWORD (string)\nThe token name for keyword tokens. LABEL lexer.LABEL (string)\nThe token name for label tokens. LEXER_LOADED events.LEXER_LOADED (string)\nEmitted after loading a language lexer.\nThis is useful for overriding a language module's key bindings or other\nproperties since the module is not loaded when Textadept starts.\nArguments:\n\n* _`name`_: The language lexer's name. diff --git a/modules/lua/ta_tags b/modules/lua/ta_tags index 8bf33335..82fe53ee 100644 --- a/modules/lua/ta_tags +++ b/modules/lua/ta_tags @@ -150,7 +150,7 @@ IV_LOOKFORWARD _HOME/core/.view.luadoc /^module('view')$/;" F class:view IV_NONE _HOME/core/.view.luadoc /^module('view')$/;" F class:view IV_REAL _HOME/core/.view.luadoc /^module('view')$/;" F class:view KEYPRESS _HOME/core/events.lua /^module('events')]]$/;" F class:events -KEYSYMS _HOME/core/keys.lua /^M.KEYSYMS = {$/;" t class:keys +KEYSYMS _HOME/core/keys.lua /^M.KEYSYMS = {--[[From Scintilla.h for CURSES]][7]='esc',[8]='\b',[9]='\t',[13]='\n',--[[From curses.h]][263]='\b',[343]='\n',--[[From Scintilla.h for CURSES]][300]='down',[301]='up',[302]='left',[303]='right',[304]='home',[305]='end',[306]='pgup',[307]='pgdn',[308]='del',[309]='ins',--[[From <gdk/gdkkeysyms.h>]][0xFE20]='\t'--[[backtab; will be 'shift'ed]],[0xFF08]='\b',[0xFF09]='\t',[0xFF0D]='\n',[0xFF1B]='esc',[0xFFFF]='del',[0xFF50]='home',[0xFF51]='left',[0xFF52]='up',[0xFF53]='right',[0xFF54]='down',[0xFF55]='pgup',[0xFF56]='pgdn',[0xFF57]='end',[0xFF63]='ins',[0xFF8D]='kpenter',[0xFF95]='kphome',[0xFF9C]='kpend',[0xFF96]='kpleft',[0xFF97]='kpup',[0xFF98]='kpright',[0xFF99]='kpdown',[0xFF9A]='kppgup',[0xFF9B]='kppgdn',[0xFFAA]='kpmul',[0xFFAB]='kpadd',[0xFFAD]='kpsub',[0xFFAF]='kpdiv',[0xFFAE]='kpdec',[0xFFB0]='kp0',[0xFFB1]='kp1',[0xFFB2]='kp2',[0xFFB3]='kp3',[0xFFB4]='kp4',[0xFFB5]='kp5',[0xFFB6]='kp6',[0xFFB7]='kp7',[0xFFB8]='kp8',[0xFFB9]='kp9',[0xFFBE]='f1',[0xFFBF]='f2',[0xFFC0]='f3',[0xFFC1]='f4',[0xFFC2]='f5',[0xFFC3]='f6',[0xFFC4]='f7',[0xFFC5]='f8',[0xFFC6]='f9',[0xFFC7]='f10',[0xFFC8]='f11',[0xFFC9]='f12'}$/;" t class:keys KEYWORD _HOME/lexers/lexer.lua /^module('lexer')]=]$/;" F class:lexer LABEL _HOME/lexers/lexer.lua /^module('lexer')]=]$/;" F class:lexer LEXER_LOADED _HOME/modules/textadept/file_types.lua /^module('textadept.file_types')]]$/;" F class:events |