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