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, Fn plus that key works as Pause, and you don’t need to change anything.
  • Set another key or a combination, such as F12, CapsLock or Ctrl+F12.
  • Use a double Shift: two short presses of Shift in a row.
  • Use a Ctrl+Alt tap: press Ctrl and the left Alt together 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

  1. Click the tray icon with either mouse button and choose “Settings…”; if the icon shows the layout flag, right-click it.
  2. In the “Hotkey” section, click “Set”. The field now says “A key or a combination…”, and the button turns into “Cancel”.
  3. Press a key or a combination, or press Shift twice in a row. To cancel, press Esc or click anywhere else.
  4. The new hotkey works right away, so you can close the window.
12:00Lang Switcher — SettingsGeneralHotkeyLayoutsExclusionsDiagnosticsPanda KoderSETTINGSGeneralStartup, sound, tray flag, language and lookStart when I sign inSound feedbackFix the selected textLayout flag in the trayNEWThe program icon shows the flagof the current layoutTell me about program updatesInterface languageEnglishAppearanceMatch systemLightDarkCloseLang Switcher — SettingsGeneralHotkeyLayoutsExclusionsDiagnosticsPanda KoderSETTINGSHotkeyOne key fixes the typed textand switches the layoutCloseOne keyTwo keysKeyPauseSetA key, a combination with Ctrl, Alt,Shift, or a double Shift.No Pause key? A double Shiftworks too.One keyTwo keysKeyA key or a combination…CancelEsc or a click elsewhere cancelsOne keyTwo keysKeyCtrl + F12SetF12 without Ctrl stays with your programs.Ctrl+F12LANG SWITCHERworkingSuspendPauseSettings…Start when I sign inWrite to the author…AboutExitright-click12345
12:00GeneralGeneralLayout flag in the trayCloseHotkeyHotkeyCloseHotkeyOne keyTwo keysKeyPauseSetA key, a combination with Ctrl,Alt, Shift, or a double Shift.No Pause key? A double Shiftworks too.One keyTwo keysKeyA key or a combination…CancelEsc or a click elsewhere cancelsOne keyTwo keysKeyCtrl + F12SetF12 without Ctrl stays withyour programs.Ctrl+F12LANG SWITCHERworkingSuspendPauseSettings…Write to the author…AboutExitright-click12345
Right-click the tray icon → “Settings…” → “Hotkey” → “Set” → press a key or a combination, such as Ctrl+F12.

What you can set

  • A single key, such as F12 or CapsLock.
  • A combination: a key with any mix of Ctrl, Alt and Shift, such as Ctrl+F12 or Alt+Shift+K. Only the exact combination counts. With Ctrl+F12 set, a plain F12 and Ctrl+Shift+F12 still 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+Alt tap: press Ctrl and the left Alt together and let go. The field shows “Ctrl + Alt”. There’s more on this below.
As installed — one key, Pause by defaultHotkeyOne keyTwo keysKeyPauseSetA key, a combination with Ctrl, Alt, Shift, or a double Shift.No Pause key? A double Shift works too.Clicked “Set” — waiting for a keyHotkeyKeyA key or a combination…CancelEsc or a click elsewhere cancelsA combination — for example, Ctrl + F12HotkeyKeyCtrl + F12SetF12 without Ctrl stays with your programs.Shift twice — a double pressHotkeyKeyShift, ShiftSetTwo presses of Shift in a row. Ordinary typing with Shift is not affected.Two keys — the second one isn’t set yetHotkeyOne keyTwo keysFix typed textPauseSetSwitch layoutNot setSetRemoveOnly switches the layout; typed text stays as it is.
As installedone key, Pause by defaultHotkeyOne keyTwo keysKeyPauseSetA key, a combination with Ctrl,Alt, Shift, or a double Shift.No Pause key? A double Shiftworks too.Clicked “Set”waiting for a keyHotkeyKeyA key or a combination…CancelEsc or a click elsewhere cancelsA combinationfor example, Ctrl + F12HotkeyKeyCtrl + F12SetF12 without Ctrl stays withyour programs.Shift twicea double pressHotkeyKeyShift, ShiftSetTwo presses of Shift in a row.Ordinary typing with Shiftis not affected.Two keysthe second one isn’t set yetHotkeyOne keyTwo keysFix typed textPauseSetSwitch layoutNot setSetRemoveOnly switches the layout;typed text stays as it is.
The “Hotkey” section before, during and after you set a key, and with “Two keys”. Under the field, the program tells you what you’ve got.

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.

HotkeyOne keyTwo keysKeyPauseSetA key, a combination with Ctrl, Alt, Shift, or a double Shift.No Pause key? A double Shift works too.One keyTwo keysFix typed textPauseSetSwitch layoutNot setSetRemoveOnly switches the layout; typed text stays as it is.One keyTwo keysFix typed textPauseSetSwitch layoutA key or a combination…CancelRemoveEsc or a click elsewhere cancelsOne keyTwo keysFix typed textPauseSetSwitch layoutF9SetRemoveOnly switches the layout; typed text stays as it is.F9123
HotkeyOne keyTwo keysKeyPauseSetA key, a combination with Ctrl,Alt, Shift, or a double Shift.No Pause key? A double Shiftworks too.One keyTwo keysFix typed textPauseSetSwitch layoutNot setSetRemoveOnly switches the layout;typed text stays as it is.One keyTwo keysFix typed textPauseSetSwitch layoutA key or a combination…CancelRemoveEsc or a click elsewhere cancelsOne keyTwo keysFix typed textPauseSetSwitch layoutF9SetRemoveOnly switches the layout;typed text stays as it is.F9123
Choose “Two keys” → “Set” next to the “Switch layout” field → press a key, such as 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.

12:00ShifttwiceруддщhelloTYPEDTWO TAPS OF SHIFTTWO MORE TAPSRUSENG12
12:00ShifttwiceруддщhelloTYPEDTWO TAPS OF SHIFTTWO MORE TAPSRUSENG12
Two short taps of 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.

HotkeyOne keyTwo keysKeyPauseSetA key, a combination with Ctrl, Alt, Shift, or a double Shift.No Pause key? A double Shift works too.One keyTwo keysKeyA key or a combination…CancelEsc or a click elsewhere cancelsOne keyTwo keysKeyCtrl + AltSetA Ctrl+Alt tap can get in the wayEvery short press of Ctrl+Alt with no other key will act as this hotkey. This can get inthe way where Ctrl+Alt is needed for itself: VMware releases the mouse with it, and remotedesktop, virtual machines and games use it.Choose another keySet it anywayOne keyTwo keysKeyCtrl + AltSetEvery short press of Ctrl+Alt with no other key will act as this hotkey. This can get inthe way where Ctrl+Alt is needed for itself: VMware releases the mouse with it, and remotedesktop, virtual machines and games use it.Ctrl+Altleft12
HotkeyOne keyTwo keysKeyPauseSetA key, a combination with Ctrl,Alt, Shift, or a double Shift.No Pause key? A double Shiftworks too.One keyTwo keysKeyA key or a combination…CancelEsc or a click elsewhere cancelsOne keyTwo keysKeyCtrl + AltSetA Ctrl+Alt tap can getin the wayChoose another keySet it anywayOne keyTwo keysKeyCtrl + AltSetCtrl+Altleft12
“Set” → press 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 Shift or with Ctrl+Alt;
  • Alt on its own, or Ctrl on its own (the second key can be a Ctrl tap, after a warning);
  • any combination with Win;
  • the arrow keys, Home, End, Delete and 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%\Lang_Switcher\config.toml:

[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.

Questions and problemson GitHub Issues ↗ or by email: send.me@panda-pishet-kod.dev