Documentation · Hotkey and layouts
Lang Switcher hotkey: no Pause/Break key on your laptop?
The default is Pause/Break. If your laptop doesn’t have that key, or you need it for something else, pick another one: “Settings…” → “Hotkey” → “Set”. A single key works, and so do combinations with Ctrl, Alt or Shift, a double Shift and a Ctrl+Alt tap. You can also have two keys: one fixes, the other only switches the layout.
No Pause/Break key on your laptop?
Lots of laptops don’t have a pause break key at all, and on others it’s hidden under Fn. Whether your keyboard calls it the pause key or the break key, it’s the same key, and for Lang Switcher it’s just the default. You have four options:
- Press it with
Fn. If Pause is a secondary function of another key,Fnplus that key works asPause, and you don’t need to change anything. - Set another key or a combination, such as
F12,CapsLockorCtrl+F12. - Use a double
Shift: two short presses ofShiftin a row. - Use a
Ctrl+Alttap: pressCtrland the leftAlttogether and let go.
While Pause is your only hotkey, a line under the field in the “Hotkey” section says “No Pause key? A double Shift works too.” The “Hello! My name is Panda.” letter says the same and shows the way there: “Settings” → “Hotkey”.
How to change it
- Click the tray icon with either mouse button and choose “Settings…”; if the icon shows the layout flag, right-click it.
- In the “Hotkey” section, click “Set”. The field now says “A key or a combination…”, and the button turns into “Cancel”.
- Press a key or a combination, or press
Shifttwice in a row. To cancel, pressEscor click anywhere else. - The new hotkey works right away, so you can close the window.
Ctrl+F12.What you can set
- A single key, such as
F12orCapsLock. - A combination: a key with any mix of
Ctrl,AltandShift, such asCtrl+F12orAlt+Shift+K. Only the exact combination counts. WithCtrl+F12set, a plainF12andCtrl+Shift+F12still go to your programs, as if Lang Switcher weren’t there. - A double
Shift: two short presses in a row. The field shows “Shift, Shift”. - A
Ctrl+Alttap: pressCtrland the leftAlttogether and let go. The field shows “Ctrl + Alt”. There’s more on this below.
One key or two
Above the field, you choose “One key” or “Two keys”. “One key” is the default: the same key fixes typed text and switches the layout. With “Two keys”, each key has one job:
- “Fix typed text” only fixes. If nothing is typed or selected, it does nothing and answers with a dull thud.
- “Switch layout” only switches to the program’s next layout and leaves the text, the selection and the clipboard alone. After a word and a space, it switches the layout for the next word. Under the field: “Only switches the layout; typed text stays as it is.”
You set the second key the same way, with “Set” next to the “Switch layout” field. Until you do, the field says “Not set”, and the program works as it does with one key. A double Shift can be either of the two keys, but the two can’t share a key, even in different combinations; the program says “This key already fixes typed text — choose another one.” “Remove” next to “Set” takes the second key back to “Not set”, and “Two keys” stays on. If you go back to “One key”, the second key is kept in the settings file for next time.
F9.Only the second key can be a single tap of the left or right Ctrl. Before it’s set, the program warns you: “A single Ctrl can get in the way”. Every short press of Ctrl will switch the layout, which can break Ctrl shortcuts and get in the way of games, remote desktop and virtual machines. Then you choose “Set it anyway” or “Choose another key”. After “Set it anyway”, the field names the key “Left Ctrl” or “Right Ctrl”, and the warning stays under the field in small gray letters until you change or remove the key.
With two keys, “How to use it” in the “About” window names the second key too: “To switch the layout without fixing anything, press …”. In the “Diagnostics” section, “Layout switch: …” joins the “Key: …” line.
Double Shift
Two short taps of Shift convert the word, and two more bring it back. Each tap must last no longer than 0.4 s, and the second one must start within 0.4 s of the start of the first. Typing a capital letter, pressing Alt+Shift or holding Shift while you click doesn’t count as a tap.
Shift convert the word, and two more bring it back.Other programs see the taps too. If a program has its own command for a double Shift (Search Everywhere in JetBrains IDEs, for example), that command runs as well. The exception is AnyDesk and RustDesk windows: the second tap isn’t passed on to them, so that Lang Switcher on the remote computer doesn’t fix the word a second time (more on remote desktop). Windows treats five presses of Shift in a row as its own shortcut and offers to turn on Sticky Keys. While a double Shift is your hotkey, Lang Switcher turns that shortcut off until it exits, and nothing is written to your Windows settings.
Ctrl+Alt tap
Press Ctrl and the left Alt together, in either order, and let go. The tap counts if you let go of the last of the two within 0.4 s of the first press, with no other key or mouse button in between. Either Ctrl works, but only the left Alt does: on many layouts the right Alt is AltGr, and Windows reads it as Ctrl+Alt. The tap can be either of the two keys.
Before it’s set, the program warns you: “A Ctrl+Alt tap can get in the way” — wherever Ctrl+Alt has a job of its own: VMware releases the mouse with it, and remote desktop, virtual machines and games use it. Then you choose “Set it anyway” or “Choose another key”; once it’s set, the warning stays under the field in small gray letters.
Ctrl and the left Alt together and let go → “Set it anyway”.Known issue: in Notepad on Windows 11, after you press the right Alt on its own with the English layout on, a Ctrl+Alt tap opens Notepad’s menu key hints. Notepad does this without Lang Switcher too. The word you meant to fix stays as it was, and what you type next goes into the key hints. It goes away after you restart Windows; until then, pick another key in the settings.
What you can’t set
If you press one of these, the program refuses and says why, right under the field:
- a key that types a character, on its own, with
Shiftor withCtrl+Alt; Alton its own, orCtrlon its own (the second key can be aCtrltap, after a warning);- any combination with
Win; - the arrow keys,
Home,End,Deleteand keys like them; Ctrl+Alt+Shift+F12, which is the emergency exit.
Alt+Shift, Ctrl+Shift and Win+Space are refused with a reason of their own: “Windows switches the input language with this combination — choose another.”
Windows’ own language shortcut
The shortcut Windows uses to switch the input language (Alt+Shift, Win+Space) is a Windows setting. Lang Switcher doesn’t change it, and you can keep using it: switching the layout that way doesn’t erase the word you’re typing. It can’t be the program’s hotkey, though.
A shortcut Windows gives to one language in “Input language hot keys” (Ctrl+Shift or the left Alt+Shift with a digit) can be set. A gray note under the field then says, “Windows uses this combination to switch the input language; while Lang Switcher is running, Lang Switcher gets it.”
With nothing typed and nothing selected, the Lang Switcher hotkey itself switches the layout to the next one of the program’s cycle, so you can pick the language ahead of time instead of pressing Alt+Shift. Press again to go on, or back with two layouts. With “Two keys”, this is the second key’s job.
In the settings file
The first key is the [hotkey] section of %APPDATA%\:
[hotkey]
key = "F12"
modifiers = ["Ctrl"]
trigger = "press"
modifiers takes "Ctrl", "Alt" and "Shift"; [] means the key on its own. trigger is press (a single press), double_tap (two taps, only with key = "Shift") or tap (a Ctrl+Alt tap).
A double Shift in the file is key = "Shift", modifiers = [], trigger = "double_tap"; a Ctrl+Alt tap is key = "LeftAlt", modifiers = ["Ctrl"], trigger = "tap". If the file has any other modifier ("Win" included), a trigger other than those three, or double_tap or tap with another key, the hotkey falls back to Pause.
The second key is the [switch_hotkey] section:
[switch_hotkey]
enabled = true
key = "ScrollLock"
trigger = "press"
enabled is the mode: true for “Two keys”, false for one, with the second key kept for next time. key, modifiers and trigger work as in [hotkey]; a Ctrl tap is key = "LeftCtrl" or "RightCtrl" with trigger = "tap", and an empty key means “Not set”. A second key that’s no good (an unknown name, or the same main key as the first) does nothing; Pause doesn’t step in for it, and the window says under the field, “The second key in the settings file is not valid; it does nothing.” Older versions of the program don’t know the [switch_hotkey] section: they work with one key and drop the second one when they save the settings.
Edit the file while the program isn’t running.
See also
Questions and problemson GitHub Issues ↗ or by email: send.me@panda-pishet-kod.dev