aboutsummaryrefslogtreecommitdiffstats
path: root/src/nano.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nano.c')
-rw-r--r--src/nano.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nano.c b/src/nano.c
index 59e2a9db..8cced7fe 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1528,6 +1528,11 @@ int do_input(bool *meta_key, bool *func_key, bool *s_or_t, bool
}
#endif
+ /* Workaround for enter key*/
+ if (input == 10) {
+ input = NANO_CONTROL_M;
+ }
+
/* Check for a shortcut in the main list. */
s = get_shortcut(MMAIN, &input, meta_key, func_key);