From 730e0a23859f155e74360587c7708e64d3e9ad54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 15 Dec 2021 01:48:01 +0100 Subject: layout: Change key binding, add Japanese --- tt.layout.ahk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tt.layout.ahk b/tt.layout.ahk index 688c050..0c89e04 100644 --- a/tt.layout.ahk +++ b/tt.layout.ahk @@ -2,7 +2,8 @@ ;; -> body -LWin & SC029:: ; key left of 1 +^\:: +^+\:: if (GetKeyState("Shift")) new := altlayout else @@ -28,9 +29,10 @@ return layouts := { ru: DllCall("LoadKeyboardLayout", "Str", "00000419", "Int", 1) , sv: DllCall("LoadKeyboardLayout", "Str", "0000041D", "Int", 1) - , us: DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1) } -activelayouts := [layouts.sv, layouts.ru] -altlayout := layouts.us + , us: DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1) + , jp: DllCall("LoadKeyboardLayout", "Str", "00000411", "Int", 1) } +activelayouts := [layouts.us, layouts.jp] +altlayout := layouts.ru ShowLayout() -- cgit v1.2.3