Skip to content

Commit

Permalink
fix XButton2 Hotkeys
Browse files Browse the repository at this point in the history
fixes #48
  • Loading branch information
phil294 committed Jul 7, 2023
1 parent 248a99a commit 3711e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run/display/x11.cr
Expand Up @@ -293,7 +293,7 @@ module Run
_key_event.type = type
_key_event.keycode = keycode
_key_event.state = state
if keycode < 9 # mouse button
if keycode <= 9 # mouse button
# pretend that keysym = keycode
@key_handler.not_nil!.call(_key_event, keycode.to_u64, nil)
else
Expand Down

0 comments on commit 3711e02

Please sign in to comment.