解决shell无法输入大写字母'P'的问题 (#404)

This commit is contained in:
LoGin 2023-10-22 12:22:41 +08:00 committed by GitHub
parent a03c4f9dee
commit 01bd5258cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -359,8 +359,8 @@ impl TypeOneFSMState {
} }
let ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize]; let ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize];
if key != KeyFlag::NoneFlag { if key != KeyFlag::NoneFlag {
// kdebug!("EMIT: ch is '{}', keyflag is {:?}\n", ch as char, key);
Self::emit(tty, ch); Self::emit(tty, ch);
} }
return TypeOneFSMState::Start; return TypeOneFSMState::Start;

View File

@ -213,7 +213,7 @@ int shell_readline(int fd, char *buf)
return count; return count;
} }
if (key && key != 0x50 && key != 0xc8) if (key && key != 0xc8)
{ {
if (key == '\b') if (key == '\b')
{ {