Fix modifier reporting on macOS

We make use of the fact that the device dependent modifiers flags
actually report left/right modifier. Code taken form SDL, with thanks.
This commit is contained in:
Kovid Goyal
2023-12-14 11:31:48 +05:30
parent 7e5230e6f4
commit b2587c1d54
2 changed files with 20 additions and 21 deletions

View File

@@ -192,11 +192,6 @@ when releasing it, it must be reset. When both left and right control keys are
pressed and one is released, the release event must again have the ``ctrl`` bit
reset.
.. note:: Not all platforms will provide independent events for left and right
modifier keys. For example on macOS, the system does not send an event when
holding left control and also pressing right control. Therefore
applications are advised to not rely on these.
.. _event_types:
Event types