From 838439080a9feaac3386d694dc7f8463e41c51df Mon Sep 17 00:00:00 2001 From: JS Deck Date: Sat, 20 Sep 2025 12:57:39 -0300 Subject: vkeyboard: update cached mods before IME; add share_states = 2 config option (#11720) --- src/devices/IKeyboard.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/devices/IKeyboard.cpp') 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; +} -- cgit v1.2.3