aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-30 23:42:15 +0100
committerJohn Ankarström <john@ankarstrom.se>2021-01-30 23:42:15 +0100
commit494d3f500d234f1b6b635bbff693e8025422b6b5 (patch)
tree74239e6bcc2fdab72fd4e1d40693605807cfc05b
parent6a07c5a3a481c7d77e199a15a8afd5d6129e6114 (diff)
downloadahk-494d3f500d234f1b6b635bbff693e8025422b6b5.tar.gz
keyboard: Disable SE dead keys when Num Lock is active
-rw-r--r--tt.keyboard.ahk6
-rw-r--r--tt.programs.ahk7
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