Skip to content

Commit f09220d

Browse files
committed
Fixed: Inserting NUL character on empty code
1 parent ec1af48 commit f09220d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

components/hotkeys.ahk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,16 @@ prepareUnicodeInserion() {
3636
#if unicodeInsertionActive
3737

3838
Alt up::
39+
unicodeInsertionActive := false
40+
41+
if (characterCodeInput == "") {
42+
return
43+
}
44+
3945
if (inputBase == "dec") {
4046
characterCodeInput := format("{:x}", characterCodeInput)
4147
}
4248

43-
unicodeInsertionActive := false
4449
SendInput {U+%characterCodeInput%}
4550
return
4651

0 commit comments

Comments
 (0)