Lang-S-Tastatur schaltete nicht komplett zurück

Das ſ blieb durch ß ersetzt, weil Ebene 3 nicht zum Custom-Layout gehört. Nun werden die drei Vertauschungen explizit rückgängig gemacht.
This commit is contained in:
qwertfisch 2020-05-30 03:14:33 +02:00
parent 677b98c177
commit 8670c7b990
2 changed files with 14 additions and 2 deletions

Binary file not shown.

View File

@ -49,6 +49,18 @@ CharProc__LnS1() {
CharProc__LnS0() {
global
; Lange-s-Tastatur deaktivieren
ChangeCustomLayout()
}
spos := InStr(layoutstring, "s")
eszettpos := InStr(layoutstring, "ß")
; ſ, s und ß wieder auf die Originalpositionen setzen
scpos := LOSP%spos%
pos := vksc%scpos%
SetKeyPos("CP1" . pos, EncodeUniComposeA("s"))
scpos := LOSP%eszettpos%
pos := vksc%scpos%
SetKeyPos("CP1" . pos, EncodeUniComposeA("ß"))
pos := vksc01A
SetKeyPos("CP3" . pos, EncodeUniComposeA("ſ"))
}