gdk_quartz_keymap_translate_keyboard_state fills consumed_modifiers wrong
Steps to reproduce
Use gdk_keymap_translate_keyboard_state function on macOS (Quartz backend), e.g. like Inkscape does.
Current behavior
consumed_modifiers
contain bits for modifier keys which haven't been pressed.
Expected outcome
consumed_modifiers
only contains bits for the masked out modifiers, like the documentation says.
Version information
GTK 3.22.30, installed via MacPorts on macOS 10.14.6
Additional information
The implementation in gdk_quartz_keymap_translate_keyboard_state looks like what the documentation describes as:
An older interpretation
consumed_modifiers
was that it contained all modifiers that might affect the translation of the key;