loader: ReadKeyStrokeEx may return partial keystrokes
In some systems we can receive no scancode nor unicodechar values. PR: 240760 Reported by: Ariel Millennium Thornton MFC after: 1 week
This commit is contained in:
parent
1bd8c5e427
commit
0aff5f3934
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355347
@ -1126,11 +1126,12 @@ efi_readkey_ex(void)
|
||||
kp->UnicodeChar++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (kp->ScanCode == 0 && kp->UnicodeChar == 0)
|
||||
return (false);
|
||||
keybuf_inschar(kp);
|
||||
return (true);
|
||||
}
|
||||
}
|
||||
return (false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user