mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
a255ffaee9
This patch adds a sanity check to the Event::type accessor. If the key code of a given PRESS or RELEASE event is out of the valid range, it reports an INVALID event. This way, client side code does not need to deal with such edge cases. E.g., on Lenovo notebooks, the ps2 driver reports strange key events when pressing shift-pageup/pagedown, violating the general assumption that there is a release event for each press event. By flagging these events as INVALID, the client-side logic stays intact. |
||
---|---|---|
.. | ||
component.h | ||
event_queue.h | ||
event.h | ||
keycodes.h | ||
root.h |