diff options
author | 2012-09-18 15:49:32 -0400 | |
---|---|---|
committer | 2012-09-18 15:49:32 -0400 | |
commit | 29a56dc530cebfaa0bdbfadd414588704e0fc374 (patch) | |
tree | 9184bae3259e72dd7c44d638ff158d7e5e39f278 /core | |
parent | 1d6c1bfb4503da0d4596345d74af63a34a58410b (diff) | |
download | textadept-29a56dc530cebfaa0bdbfadd414588704e0fc374.tar.gz textadept-29a56dc530cebfaa0bdbfadd414588704e0fc374.zip |
Fixed incremental find in ncurses.
Diffstat (limited to 'core')
-rw-r--r-- | core/events.lua | 4 | ||||
-rw-r--r-- | core/keys.lua | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/events.lua b/core/events.lua index 3ee2e333..0953f2f1 100644 --- a/core/events.lua +++ b/core/events.lua @@ -67,11 +67,14 @@ local M = {} -- * `ch`: The text character byte. -- @field COMMAND_ENTRY_COMMAND (string) -- Called when a command is entered into the Command Entry. +-- If any handler returns `true`, the Command Entry does not hide +-- automatically. -- Arguments: -- -- * `command`: The command text. -- @field COMMAND_ENTRY_KEYPRESS (string) -- Called when a key is pressed in the Command Entry. +-- If any handler returns `true`, the key is not inserted into the entry. -- Arguments: -- -- * `code`: The key code. @@ -176,6 +179,7 @@ local M = {} -- * `position`: The text position of the release. -- @field KEYPRESS (string) -- Called when a key is pressed. +-- If any handler returns `true`, the key is not inserted into the buffer. -- Arguments: -- -- * `code`: The key code. diff --git a/core/keys.lua b/core/keys.lua index 65042fe0..40502501 100644 --- a/core/keys.lua +++ b/core/keys.lua @@ -111,6 +111,8 @@ local error = function(e) events.emit(events.ERROR, e) end -- @class table -- @name KEYSYMS M.KEYSYMS = { + -- From ncurses.h + [263] = '\b', -- From Scintilla.h. [300] = 'down', [301] = 'up', [302] = 'left', [303] = 'right', [304] = 'home', [305] = 'end', |