From 494d3f500d234f1b6b635bbff693e8025422b6b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 30 Jan 2021 23:42:15 +0100 Subject: keyboard: Disable SE dead keys when Num Lock is active --- tt.keyboard.ahk | 6 ++++++ tt.programs.ahk | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tt.keyboard.ahk b/tt.keyboard.ahk index dea17ca..d4fc0b0 100644 --- a/tt.keyboard.ahk +++ b/tt.keyboard.ahk @@ -7,6 +7,12 @@ >!s::SendInput, {ASC 0223} ; ß <^>!s::SendInput, {ASC 0223} +#If Layout() = layouts.sv && GetKeyState("NumLock", "T") ; see tt.layout.ahk ++SC00D::SendInput, ``{Space} ++SC01B::SendInput, {^}{Space} +<^>!SC01B::SendInput, ~{Space} +#If + ;; ANSI keyboard mappings ----------------------------------------------------- #If Layout() = layouts.us ; see tt.layout.ahk diff --git a/tt.programs.ahk b/tt.programs.ahk index dd751c7..7386e2f 100644 --- a/tt.programs.ahk +++ b/tt.programs.ahk @@ -124,8 +124,6 @@ Numpad0:: ; crop to 4:3 SendInput, {Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9}{Numpad9} return -#IfWinActive - #IfWinActive ahk_class Photoshop MButton:: @@ -134,10 +132,5 @@ KeyWait, MButton SendInput, {Space Up}{LButton Up} return -#If WinActive("ahk_class PuTTY") and Layout() = layouts.sv ; see tt.layout.ahk -+SC00D::SendInput, ``{Space} -+SC01B::SendInput, {^}{Space} -<^>!SC01B::SendInput, ~{Space} -#If #IfWinActive -- cgit v1.2.3