Commit d2270e51 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

input: make <Ctrl+Shift+Arrow> work also when using --rebindkeypad

The function get_keycode() should never return zero -- it should
return either the code from ncurses or the given fallback code.

This fixes https://savannah.gnu.org/bugs/?52682.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1532,7 +1532,7 @@ int get_keycode(const char *keyname, const int standard)
#ifdef HAVE_KEY_DEFINED
const char *keyvalue = tigetstr(keyname);
if (keyvalue != 0 && keyvalue != (char *)-1)
if (keyvalue != 0 && keyvalue != (char *)-1 && key_defined(keyvalue))
return key_defined(keyvalue);
else
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment