qutebrowser/tests/unit/keyinput
Florian Bruhin d1854eddaf Handle invalid keys coming from Qt
When pressing a key which doesn't exist as Qt.Key, we don't get Qt.Key_unknown
like we'd expect, but we get 0x0 instead...

Let's add that as a new "nil" key (to not conflict with None/unknown/zero/...)
and handle it appropriately.

This can be reproduced by doing:
setxkbmap -layout us,gr -option grp:alt_shift_toggle
and pressing Alt-Shift/Shift-Alt.
2018-03-05 15:42:52 +01:00
..
conftest.py Refactor other keyinput tests 2018-03-04 20:21:58 +01:00
key_data.py Handle invalid keys coming from Qt 2018-03-05 15:42:52 +01:00
test_basekeyparser.py Handle invalid keys coming from Qt 2018-03-05 15:42:52 +01:00
test_keyutils.py Handle invalid keys coming from Qt 2018-03-05 15:42:52 +01:00
test_modeman.py Fix test_modeman.py 2018-03-05 11:08:21 +01:00
test_modeparsers.py Refactor other keyinput tests 2018-03-04 20:21:58 +01:00