Skip to content

Commit

Permalink
- Better support for key modifiers in autohotkey backend
Browse files Browse the repository at this point in the history
  • Loading branch information
iarwain committed Jun 8, 2020
1 parent 254e597 commit 1b2934a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion text2key.r
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ autohotkey: make backend [
emit rejoin [{SetKeyDelay } either value = 0 [0] [to-integer 1000 * 1.0 / value] {, 0}]
]
key: func [value] [
emit rejoin [uppercase trim/with replace/all replace/all value {ctrl} {^^} {alt} {!} #"+" {::}]
foreach [src dst] [
{ctrl} {^^}
{alt} {!}
{shift} {+}
{win} {#}
{ } {}
] [
replace/all value src dst
]
emit rejoin [uppercase value {::}]
]
]

Expand Down

0 comments on commit 1b2934a

Please sign in to comment.