Skip to content

Commit

Permalink
Fixed: Inserting NUL character on empty code
Browse files Browse the repository at this point in the history
  • Loading branch information
Heck-R committed Jan 10, 2021
1 parent ec1af48 commit f09220d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/hotkeys.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ prepareUnicodeInserion() {
#if unicodeInsertionActive

Alt up::
unicodeInsertionActive := false

if (characterCodeInput == "") {
return
}

if (inputBase == "dec") {
characterCodeInput := format("{:x}", characterCodeInput)
}

unicodeInsertionActive := false
SendInput {U+%characterCodeInput%}
return

Expand Down

0 comments on commit f09220d

Please sign in to comment.