mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 23:14:20 +08:00
Fixed dead key and AltGr+shift handling on X windows. Also fixed
bug with decomposing characters that have no direct key mapping but do have a direct key mapping for the character with the opposite case.
This commit is contained in:
@@ -295,7 +295,7 @@ CKeyState::addModifier(KeyModifierMask modifier, const KeyButtons& buttons)
|
||||
|
||||
bool
|
||||
CKeyState::mapModifier(Keystrokes& keys, Keystrokes& undo,
|
||||
KeyModifierMask mask, bool desireActive) const
|
||||
KeyModifierMask mask, bool desireActive, bool force) const
|
||||
{
|
||||
// look up modifier
|
||||
const KeyButtons& buttons = m_maskToKeys[getIndexForModifier(mask)];
|
||||
@@ -304,7 +304,7 @@ CKeyState::mapModifier(Keystrokes& keys, Keystrokes& undo,
|
||||
}
|
||||
|
||||
// ignore if already in desired state
|
||||
if (isModifierActive(mask) == desireActive) {
|
||||
if (!force && isModifierActive(mask) == desireActive) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user