refactor: EIKeyState, compare to the current state when seeing if modifiers are inactive, suggested by wismill
This commit is contained in:
@ -128,7 +128,7 @@ std::uint32_t EiKeyState::convertModMask(xkb_mod_mask_t xkbModMaskIn) const
|
||||
#endif
|
||||
|
||||
// Skip inactive modifiers.
|
||||
if ((xkbModMaskIn & xkbModMask) == 0)
|
||||
if ((xkbModMaskIn & xkbModMask) != xkbModMask)
|
||||
continue;
|
||||
|
||||
/* added in libxkbcommon 1.8.0 in the same commit so we have all or none */
|
||||
|
||||
Reference in New Issue
Block a user