解决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

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

View File

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