Skip to content

Commit

Permalink
#104 added missing try catch block using Xlib which may fail on wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Mar 9, 2023
1 parent 2c1d381 commit e243ce6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion asus_touchpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,10 @@ def get_compose_key_start_events_for_unicode_string():
left_ctrl_pressed = InputEvent(EV_KEY.KEY_LEFTCTRL, 1)
left_ctrl_unpressed = InputEvent(EV_KEY.KEY_LEFTCTRL, 0)

U_key = get_keycode_which_reflects_current_layout("U")
try:
U_key = get_keycode_which_reflects_current_layout("U")
except:
U_key = EV_KEY.KEY_U

key_U_pressed = InputEvent(U_key, 1)
key_U_unpressed = InputEvent(U_key, 0)
Expand Down

0 comments on commit e243ce6

Please sign in to comment.