diff options
| author | JS Deck <jsdeckerido@gmail.com> | 2025-09-20 12:57:39 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 17:57:39 +0200 |
| commit | 838439080a9feaac3386d694dc7f8463e41c51df (patch) | |
| tree | 11492db963560ea2016b089356fab0f61dca3b6a /src/devices/IKeyboard.cpp | |
| parent | 6a88f2e8800d4540ecbbb0d5b3d7f85a05387300 (diff) | |
vkeyboard: update cached mods before IME; add share_states = 2 config option (#11720)
Diffstat (limited to 'src/devices/IKeyboard.cpp')
| -rw-r--r-- | src/devices/IKeyboard.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/devices/IKeyboard.cpp b/src/devices/IKeyboard.cpp index 7e6320e2..20292176 100644 --- a/src/devices/IKeyboard.cpp +++ b/src/devices/IKeyboard.cpp @@ -447,3 +447,8 @@ bool IKeyboard::getPressed(uint32_t key) { bool IKeyboard::shareStates() { return m_shareStates; } + +void IKeyboard::setShareStatesAuto(bool shareStates) { + if (m_shareStatesAuto) + m_shareStates = shareStates; +} |
