From 19142674b9b85d74dc4b3ceddf339c4386a8a6cc Mon Sep 17 00:00:00 2001 From: Pieter Degroote Date: Fri, 7 Feb 2025 22:56:20 +0100 Subject: [PATCH 1/1] Add files via upload A small change has been made to cancel dead key input on Backspace or Escape. --- autohotkey/UltimateKEYS (for AutoHotkey v1.1).ahk | 8 +++++--- autohotkey/UltimateKEYS (for AutoHotkey v2).ahk | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/autohotkey/UltimateKEYS (for AutoHotkey v1.1).ahk b/autohotkey/UltimateKEYS (for AutoHotkey v1.1).ahk index d6aae51..1427b2b 100644 --- a/autohotkey/UltimateKEYS (for AutoHotkey v1.1).ahk +++ b/autohotkey/UltimateKEYS (for AutoHotkey v1.1).ahk @@ -1,6 +1,6 @@ #requires AutoHotkey v1.1 -; UltimateKEYS (for AutoHotkey v1.1).ahk - 2025-01-29 +; UltimateKEYS (for AutoHotkey v1.1).ahk - 2025-02-06 ; Website : https://pieter-degroote.github.io/UltimateKEYS/ @@ -21,10 +21,12 @@ ListLines Off ; omits recently executed lines from history (for privacy and se SendMode Input ; optimizes for faster and more reliable input +global gEndKeys := "{bs}{esc}" ; ends dead key input on Backspace or Escape + ; Compose Key Sequences (declaration) -compose := ComObjCreate("Scripting.Dictionary") +global compose := ComObjCreate("Scripting.Dictionary") ; Compose : Acute Accent @@ -1832,7 +1834,7 @@ compose.item["?U"] := "{u+1ef0}" ; (á»°) U with horn and dot below >!sc056:: ; Right Alt + ISO Key <^>!sc029:: ; AltGr + Grave Accent <^>!sc056:: ; AltGr + ISO Key - keys := InputHook("L2", "{esc}") + keys := InputHook("L2", gEndKeys) keys.Start() keys.Wait() Send % compose.item[keys.Input] diff --git a/autohotkey/UltimateKEYS (for AutoHotkey v2).ahk b/autohotkey/UltimateKEYS (for AutoHotkey v2).ahk index 079555f..d750319 100644 --- a/autohotkey/UltimateKEYS (for AutoHotkey v2).ahk +++ b/autohotkey/UltimateKEYS (for AutoHotkey v2).ahk @@ -1,6 +1,6 @@ #requires AutoHotkey v2 -; UltimateKEYS (for AutoHotkey v2).ahk - 2025-01-29 +; UltimateKEYS (for AutoHotkey v2).ahk - 2025-02-06 ; Website : https://pieter-degroote.github.io/UltimateKEYS/ @@ -20,6 +20,8 @@ ListLines False ; omits recently executed lines from history (for privacy and SendMode "Input" ; optimizes for faster and more reliable input +global gEndKeys := "{bs}{esc}" ; ends dead key input on Backspace or Escape + ; Compose Key Sequences (declaration) @@ -1831,7 +1833,7 @@ compose["?U"] := "{u+1ef0}" ; (á»°) U with horn and dot below >!sc056:: ; Right Alt + ISO Key <^>!sc029:: ; AltGr + Grave Accent <^>!sc056:: { ; AltGr + ISO Key - keys := InputHook("L2", "{esc}") + keys := InputHook("L2", gEndKeys) keys.Start() keys.Wait() if compose.Has(keys.Input) -- 2.47.3