refactor: EIKeyState, compare to the current state when seeing if modifiers are inactive, suggested by wismill
This commit is contained in:
parent
fb144a5e66
commit
b18c3b588f
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ std::uint32_t EiKeyState::convertModMask(xkb_mod_mask_t xkbModMaskIn) const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Skip inactive modifiers.
|
// Skip inactive modifiers.
|
||||||
if ((xkbModMaskIn & xkbModMask) == 0)
|
if ((xkbModMaskIn & xkbModMask) != xkbModMask)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* added in libxkbcommon 1.8.0 in the same commit so we have all or none */
|
/* added in libxkbcommon 1.8.0 in the same commit so we have all or none */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue