vkeyboard: update cached mods before IME; add share_states = 2 config option (#11720)
This commit is contained in:
parent
6a88f2e880
commit
838439080a
6 changed files with 28 additions and 10 deletions
|
|
@ -44,8 +44,11 @@ CVirtualKeyboard::CVirtualKeyboard(SP<CVirtualKeyboardV1Resource> keeb_) : m_key
|
|||
m_keyboardEvents.keymap.emit(event);
|
||||
});
|
||||
|
||||
m_deviceName = keeb_->m_name;
|
||||
m_shareStates = g_pConfigManager->getDeviceInt(m_deviceName, "share_states", "input:virtualkeyboard:share_states");
|
||||
m_deviceName = keeb_->m_name;
|
||||
|
||||
const auto SHARESTATES = g_pConfigManager->getDeviceInt(m_deviceName, "share_states", "input:virtualkeyboard:share_states");
|
||||
m_shareStates = SHARESTATES != 0;
|
||||
m_shareStatesAuto = SHARESTATES == 2;
|
||||
}
|
||||
|
||||
bool CVirtualKeyboard::isVirtual() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue