got rid of the confusing xkb keycode offset

pull/14/head
sezanzeb 4 years ago
parent 8ac2092e74
commit 63a2209251

@ -22,6 +22,7 @@
"""User Interface."""
import evdev
from evdev.ecodes import EV_KEY
import gi
@ -220,7 +221,12 @@ class Window:
if keycode is None or ev_type is None:
return True
if ev_type == EV_KEY and keycode in [280, 333]:
click_events = [
evdev.ecodes.BTN_LEFT,
evdev.ecodes.BTN_TOOL_DOUBLETAP
]
if ev_type == EV_KEY and keycode in click_events:
# disable mapping the left mouse button because it would break
# the mouse. Also it is emitted right when focusing the row
# which breaks the current workflow.

Loading…
Cancel
Save