From 0bb36c066ea948a9d78c089402abffc6dddb9c6b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 27 Jun 2015 17:06:14 -0400 Subject: 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'. --- modules/textadept/keys.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/textadept/keys.lua') 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'} -- cgit v1.2.3