aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/keys.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-06-27 17:06:14 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-06-27 17:06:14 -0400
commit0bb36c066ea948a9d78c089402abffc6dddb9c6b (patch)
tree97439da43fa96233f8f74f17ceabe0b70565eeb3 /modules/textadept/keys.lua
parent5edcafe3cadc0f21f13018f10b40252e37701cba (diff)
downloadtextadept-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.lua3
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'}