Revert "readline: exclude the non-ctrl case from checks"

This reverts commit 2fcabe8dfe.
This commit is contained in:
mintsuki 2021-07-11 02:02:50 +02:00
parent 6f17771c53
commit f66620052d

View File

@ -38,7 +38,7 @@ int getchar_internal(uint8_t scancode, uint8_t ascii) {
// special case checks for C-[pnfb]
#define CTRL_CHECK(ch, key) \
if ((ascii | 0x60) == ch && ascii != ch) { \
if ((ascii | 0x60) == ch) { \
return key; \
} else { \
break; \
@ -76,8 +76,9 @@ int getchar_internal(uint8_t scancode, uint8_t ascii) {
return GETCHAR_ESCAPE;
// special case checks for C-[pnfb]
// EFI for some reason reports scancode zero if Ctrl is held
#define CTRL_CHECK(ch, key) \
if ((ascii | 0x60) == ch && ascii != ch) { \
if ((ascii | 0x60) == ch) { \
return key; \
}
case 0: