mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
解决shell无法输入大写字母'P'的问题 (#404)
This commit is contained in:
parent
a03c4f9dee
commit
01bd5258cf
@ -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;
|
||||
|
@ -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')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user