mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-04 14:11:58 +03:00
Merge pull request #92 from ArsenArsen/trunk
readline: exclude the non-ctrl case from checks
This commit is contained in:
commit
9f541d2d8e
@ -38,7 +38,7 @@ int getchar_internal(uint8_t scancode, uint8_t ascii) {
|
|||||||
|
|
||||||
// special case checks for C-[pnfb]
|
// special case checks for C-[pnfb]
|
||||||
#define CTRL_CHECK(ch, key) \
|
#define CTRL_CHECK(ch, key) \
|
||||||
if ((ascii | 0x60) == ch) { \
|
if ((ascii | 0x60) == ch && ascii != ch) { \
|
||||||
return key; \
|
return key; \
|
||||||
} else { \
|
} else { \
|
||||||
break; \
|
break; \
|
||||||
@ -76,9 +76,8 @@ int getchar_internal(uint8_t scancode, uint8_t ascii) {
|
|||||||
return GETCHAR_ESCAPE;
|
return GETCHAR_ESCAPE;
|
||||||
|
|
||||||
// special case checks for C-[pnfb]
|
// special case checks for C-[pnfb]
|
||||||
// EFI for some reason reports scancode zero if Ctrl is held
|
|
||||||
#define CTRL_CHECK(ch, key) \
|
#define CTRL_CHECK(ch, key) \
|
||||||
if ((ascii | 0x60) == ch) { \
|
if ((ascii | 0x60) == ch && ascii != ch) { \
|
||||||
return key; \
|
return key; \
|
||||||
}
|
}
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user