summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx@intelfx.name>2026-07-28 06:12:45 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-08-21 15:52:57 +0300
commitc1ece6ba0a7e2fd00ea65126095292e43b386361 (patch)
treece92fa4570d83f50cad1fe8bac35cf489be5447b /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
parent93be2ced1c60dadb00bf548786a025302d85757c (diff)
downloadedk2-c1ece6ba0a7e2fd00ea65126095292e43b386361.tar.xz
OvmfPkg/VirtioInputDxe: maintain keyboard toggle state
In addition to maintaining full key state, we also need to maintain explicit toggle (NumLock/CapsLock/ScrollLock) state. This completes ->KeyState->KeyToggleState handling and SetStateEx() implementation. When a *Lock key is pressed, update the keyboard toggle state before doing anything else. This must happen first, as this state is copied into ->KeyState (and ->KeyState needs to be filled before ->Key, as Shift state must be cleared after shifting a printable character). When filling ->Key, apply CapsLock in series with Shift key handling (CapsLock only applies to alphabetic characters, but otherwise it XORs with Shift). Finally, complete SetStateEx() implementation as we can now apply all KeyToggleState bits properly. Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name> Tested-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c')
0 files changed, 0 insertions, 0 deletions