diff options
| -rw-r--r-- | src/nano.c | 5 | ||||
| -rw-r--r-- | src/prompt.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -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); diff --git a/src/prompt.c b/src/prompt.c index afb36d67..6f24574f 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -87,6 +87,11 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *have_shortcut, } #endif + /* Workaround for enter key*/ + if (input == 10) { + input = NANO_CONTROL_M; + } + /* Check for a shortcut in the current list. */ s = get_shortcut(currmenu, &input, meta_key, func_key); |
