diff options
author | 2015-06-27 17:06:14 -0400 | |
---|---|---|
committer | 2015-06-27 17:06:14 -0400 | |
commit | 0bb36c066ea948a9d78c089402abffc6dddb9c6b (patch) | |
tree | 97439da43fa96233f8f74f17ceabe0b70565eeb3 /modules/textadept/keys.lua | |
parent | 5edcafe3cadc0f21f13018f10b40252e37701cba (diff) | |
download | textadept-0bb36c066ea948a9d78c089402abffc6dddb9c6b.tar.gz textadept-0bb36c066ea948a9d78c089402abffc6dddb9c6b.zip |
The Enter key is always reported as '\n' on Windows; modules/textadept/keys.lua
It may have been reported as '\r' long ago in previous versions of GTK or
pdcurses, but on WinXP and Win7, it is always '\n'.
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index f0add5cd..d41d0fd0 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -400,7 +400,7 @@ keys[not OSX and not CURSES and 'ca' or 'ma'] = buffer.select_all keys[not CURSES and 'cm' or 'mm'] = editing.match_brace keys[not OSX and (not CURSES and 'c\n' or 'cmj') or 'cesc'] = {editing.autocomplete, 'word'} -if CURSES and WIN32 then keys['c\r'] = keys['cmj'] end +if CURSES and WIN32 then keys['c\n'] = keys['cmj'] end if not CURSES then keys[not OSX and 'caH' or 'mH'] = editing.highlight_word end @@ -567,7 +567,6 @@ end keys[not OSX and not CURSES and 'c*' or 'm*'] = utils.toggle_current_fold if not CURSES then keys[not OSX and 'ca\n' or 'c\n'] = {utils.toggle_property, 'view_eol'} - if not OSX then keys['ca\n\r'] = keys['ca\n'] end keys[not OSX and 'ca\\' or 'c\\'] = {utils.toggle_property, 'wrap_mode'} keys[not OSX and 'caI' or 'cI'] = {utils.toggle_property, 'indentation_guides'} |