mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 06:31:50 +08:00
Now restoring toggle key states on leaving a client screen to
their state when the screen was entered. Previously when leaving a client screen the toggle keys kept their state so, say, caps lock, would remain on. This was inconvenient if you then used the client's keyboard directly.
This commit is contained in:
@@ -510,6 +510,14 @@ CMSWindowsSecondaryScreen::setToggleState(KeyModifierMask mask)
|
||||
}
|
||||
}
|
||||
|
||||
KeyModifierMask
|
||||
CMSWindowsSecondaryScreen::getToggleState() const
|
||||
{
|
||||
return (m_mask & (KeyModifierCapsLock |
|
||||
KeyModifierNumLock |
|
||||
KeyModifierScrollLock));
|
||||
}
|
||||
|
||||
// map special KeyID keys to virtual key codes. if the key is an
|
||||
// extended key then the entry is the virtual key code | 0x100.
|
||||
// unmapped keys have a 0 entry.
|
||||
|
||||
Reference in New Issue
Block a user