Skip to content

Commit

Permalink
Hotkeys/Send keys: fix disallowing certain key names such as =A:: whi…
Browse files Browse the repository at this point in the history
…ch previously wrongly was just understood as =

only first character used, should have rejected
ref #26
  • Loading branch information
phil294 committed Dec 19, 2022
1 parent f456a8f commit 2f58dcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/run/display/x11.cr
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ module Run
@@ahk_key_name_to_keysym_cache[key_name] = lookup
return lookup
end
return nil if key_name.size > 1
char = key_name[0]
return nil if char >= 'A' && char < 'Z' || char >= 'a' && char <= 'z'
# This fallback may fail but it's very likely this is the correct match now.
Expand Down

0 comments on commit 2f58dcc

Please sign in to comment.