keymaps/twey: Plover 3.0 has a standard TOGGLE keybinding; use that instead
parent
b5c5b71828
commit
373e441d86
|
@ -171,15 +171,19 @@ void toggle_steno(int pressed)
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
if (layer != STEN) layer_on(STEN); else layer_off(STEN);
|
if (layer != STEN) layer_on(STEN); else layer_off(STEN);
|
||||||
|
|
||||||
register_code(PV_LS);
|
register_code(PV_LP);
|
||||||
register_code(PV_LH);
|
register_code(PV_LH);
|
||||||
register_code(PV_RF);
|
register_code(PV_LR);
|
||||||
register_code(PV_RT);
|
register_code(PV_O);
|
||||||
|
register_code(PV_RL);
|
||||||
|
register_code(PV_RG);
|
||||||
} else {
|
} else {
|
||||||
unregister_code(PV_LS);
|
unregister_code(PV_LP);
|
||||||
unregister_code(PV_LH);
|
unregister_code(PV_LH);
|
||||||
unregister_code(PV_RF);
|
unregister_code(PV_LR);
|
||||||
unregister_code(PV_RT);
|
unregister_code(PV_O);
|
||||||
|
unregister_code(PV_RL);
|
||||||
|
unregister_code(PV_RG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ The Plover key (top right key on the left half) also sends my Plover
|
||||||
layer, so you can toggle between steno and typing modes with a single
|
layer, so you can toggle between steno and typing modes with a single
|
||||||
keypress.
|
keypress.
|
||||||
|
|
||||||
If you want to use this feature, you'll need to add:
|
If you want to use this feature, you'll need to add the
|
||||||
|
`commands.json` dictionary to your Plover dictionaries, or define the
|
||||||
"SH-FT": "{PLOVER:TOGGLE}"
|
toggle stroke (`PHROLG`) yourself.
|
||||||
|
|
||||||
to your Plover dictionary.
|
|
||||||
|
|
Loading…
Reference in New Issue