mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-03 13:42:06 +03:00
Revert "readline: exclude the non-ctrl case from checks"
This reverts commit 2fcabe8dfe
.
This commit is contained in:
parent
6f17771c53
commit
f66620052d
@ -37,11 +37,11 @@ int getchar_internal(uint8_t scancode, uint8_t ascii) {
|
||||
return GETCHAR_ESCAPE;
|
||||
|
||||
// special case checks for C-[pnfb]
|
||||
#define CTRL_CHECK(ch, key) \
|
||||
if ((ascii | 0x60) == ch && ascii != ch) { \
|
||||
return key; \
|
||||
} else { \
|
||||
break; \
|
||||
#define CTRL_CHECK(ch, key) \
|
||||
if ((ascii | 0x60) == ch) { \
|
||||
return key; \
|
||||
} else { \
|
||||
break; \
|
||||
}
|
||||
case 0x19:
|
||||
CTRL_CHECK('p', GETCHAR_CURSOR_UP);
|
||||
@ -76,9 +76,10 @@ int getchar_internal(uint8_t scancode, uint8_t ascii) {
|
||||
return GETCHAR_ESCAPE;
|
||||
|
||||
// special case checks for C-[pnfb]
|
||||
#define CTRL_CHECK(ch, key) \
|
||||
if ((ascii | 0x60) == ch && ascii != ch) { \
|
||||
return key; \
|
||||
// EFI for some reason reports scancode zero if Ctrl is held
|
||||
#define CTRL_CHECK(ch, key) \
|
||||
if ((ascii | 0x60) == ch) { \
|
||||
return key; \
|
||||
}
|
||||
case 0:
|
||||
CTRL_CHECK('p', GETCHAR_CURSOR_UP);
|
||||
|
Loading…
Reference in New Issue
Block a user