Skip to content
Projetos

Sobre

Keyboard layout switcher for Windows 10 and 11 that fixes what you already typed: press Pause/Break and the word typed in the wrong layout is retyped in the right one. Free and open source, written in Rust.

Produtividade e automação

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+1
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original
Lang Switcher icon

Lang Switcher

CI Version License: MIT OR Apache-2.0

Lang Switcher in Notepad: руддщ, typed with the Russian layout on, becomes hello after one press of Pause/Break and the layout switches to English; then the same with the Hebrew layout

Lang Switcher fixes text typed in the wrong keyboard layout. You meant to type hello, but the Russian layout was on, so the screen shows руддщ. Press Pause/Break: the word becomes hello, and the window switches to the English layout. Press it again and you get the original back, exactly as you typed it. One key, no setup, nothing to learn.

По-русски — переключатель раскладки клавиатуры, который исправляет слово, набранное не в той раскладке.

Download: Releases of this repository · the download page of the site. Windows 10 and 11.

How it differs from auto-switchers.

  • It fixes, it does not guess. The program does not decide for you which word is wrong and changes nothing on its own: a word is converted only when you press the key, so a word that was right is never "corrected".
  • One key. Pause/Break by default; another key, a combination or a double tap of Shift if you prefer.
  • The original comes back byte for byte. A second press restores exactly what you typed: the program keeps the keys you pressed, not the converted text.

A small tray program, free and open source under MIT OR Apache-2.0, with the interface in 66 languages.

The tray menu: Lang Switcher, Working at the top; then Suspend with its key Pause, Settings…, the switch Start when I sign in, Write to the author…, About, Exit
The tray menu
The settings window: the sections General, Hotkey, Layouts, Exclusions and Diagnostics on the left; General is open with the switches Start when I sign in, Sound feedback, Fix the selected text, Layout flag in the tray and Tell me about program updates, the interface language, Found a mistake in the translation?, the appearance; Close at the bottom
Settings

Program page · Keyboard layout converter · Questions and answers · No Pause/Break key on your laptop?

Status: version 1.9.0; the interface speaks 66 languages (see Languages). What changed in each version is in CHANGELOG.md and on the Releases page.

How it works

  • The word you just typed. Lang Switcher remembers the keys you pressed — the keys, not the text — and on Pause/Break retypes them in the other layout, erasing the wrong word first. A second press goes back, character for character, because the program keeps the keys themselves and never overwrites them with the result.
  • Selected text. Select any text, press Pause/Break, and the selection is converted. The clipboard is put back exactly as it was afterwards, every format of it.
  • Nothing typed, nothing selected. Press Pause/Break and the layout switches to the next one of the program's cycle; press again to go on, or back with two layouts. In a password field the key only switches the layout and never converts what was typed.
  • Which layouts. By default, the two layouts you use most; you can name a pair or a cycle of several in the settings window.
  • Where. Notepad, Word, browsers, messengers, Windows Terminal and the classic console. It also works in programs run as administrator. In password fields the program keeps no record of your keys at all.

Download and install

Releases are on the Releases page of this repository and on the download page of the site. The installer speaks the language of your Windows.

If the browser or Windows warns you. The program is signed with the author's own certificate, not one from a certification authority, and a new release is still downloaded rarely, so you will see warnings — this is expected:

  • Edge: in Downloads, "…" → "Keep", then in the dialog "Delete ▾" → "Keep anyway".
  • Chrome: "Download suspicious file".
  • Windows may show "Windows protected your PC" — "More info" → "Run anyway". Then the yellow UAC prompt — "Yes".

Every window, step by step: Edge · Chrome · Opera · Yandex Browser · Firefox. You can check the file against the SHA-256 on its release page.

What the installer does with a certificate. Your Windows does not trust the author's certificate, so the installer creates one of its own on your computer, "Lang Switcher (local)": good for code signing only, not a certification authority, for 30 years. It signs the program with it, destroys the private key at once, and puts the public part into the computer's Trusted Root Certification Authorities. Uninstalling the program removes that certificate. If you would rather not have it, run LangSwitcher-setup.exe /NOLOCALCERT: you get a copy of the program without the certificate, which works everywhere except in programs run as administrator.

Requirements

Windows 10 or Windows 11, 64-bit. No runtime to install, no account, no internet needed to work.

Interface languages and keyboard layouts

The interface speaks 66 languages — 64 languages, Serbian and Uzbek in both of their scripts; Hebrew, Arabic, Urdu, Persian and Uyghur read right to left. The language list of the settings puts the language of Windows, English, the languages of your keyboard layouts and Russian on top, and the rest by name.

All 66 interface languages

English, Russian, Ukrainian, German, French, Spanish, Portuguese, Italian, Polish, Czech, Turkish, Greek, Hebrew, Arabic, Hindi, Bengali, Urdu, Punjabi, Marathi, Telugu, Tamil, Persian, Gujarati, Thai, Kannada, Odia, Malayalam, Uzbek (Latin and Cyrillic), Nepali, Assamese, Azerbaijani, Khmer, Kazakh, Serbian (Cyrillic and Latin), Uyghur, Bulgarian, Armenian, Lao, Belarusian, Tatar, Georgian, Macedonian, Vietnamese, Dutch, Romanian, Hungarian, Swedish, Albanian, Danish, Finnish, Croatian, Slovak, Norwegian Bokmål, Lithuanian, Slovenian, Bosnian, Latvian, Estonian, Welsh, Maltese, Icelandic, Luxembourgish, Māori and Norwegian Nynorsk.

Typing. The program converts between any two Windows keyboard layouts installed on your computer, except layouts with an IME (Chinese, Japanese, Korean), where a character is built from several keys in a candidate window. It was measured on the layouts of Windows 11 for 102 languages — 107 combinations of a language and a script (96, plus 11 smaller scripts): 16 Cyrillic, 45 Latin with letters of their own, 34 with a script of their own (Arabic, Hebrew, Greek, Armenian, Georgian, Thai, the Indian scripts and more) and Fula in ADLaM; then 11 smaller scripts (Cherokee, Javanese, Inuktitut in syllabics and in Latin letters, and others). Azerbaijani, Serbian, Mongolian, Central Atlas Tamazight and Inuktitut are each counted with two scripts.

The finer points
  • Letters a layout gives only with AltGr, dead keys (two in a row as well: BÉPO ´, ´, o is ő) and keys that print several characters at once (Arabic لا, Indian conjuncts) are converted the way Windows itself types them.
  • Text in scripts with signs above and below the letters is erased and selected exactly: the program counts letters the way Windows does (Thai สวัสดี is 4 letters and 6 code points). In Notepad of Windows 11 the backspace method goes by the selection, like auto: that field loses or repeats characters of an insertion after Backspace, and it takes a typed Tamil consonant with its pulli (க்) off sometimes with one press, sometimes with two. The first press over a typed word selects it there by its position in the text, not by caret stops: one stop or three on the Tamil conjunct க்ஷ, and no count is right for both.
  • When a key of the layout is ambiguous (Arabic 101: لا is one key, B, and also two, G and H) and the word was not typed just now, the program picks the reading that is more probable in the target language. It has letter statistics for English, French, Spanish and Russian, and since 1.2.0 for Arabic, Persian, Indonesian, Hindi, Tamil and Sinhala.
  • The level of the right Ctrl of Canadian Multilingual Standard (the only layout of Windows with such a level, Japanese aside) converts into the same level of a layout that has it; a target layout without it does not take such a word, and the program sounds a refusal instead.
  • In selected text the program cannot see CapsLock, and a character the target layout does not have is carried over as it is.

Where the letter statistics come from: public-domain books of Project Gutenberg (English, French, Spanish, Russian) and the Leipzig Corpora Collection, Universität Leipzig, licensed CC BY (the six languages of 1.2.0; the Sinhala corpus is drawn from Wikipedia, CC BY-SA). Only tables of letter frequencies are in the program, not the texts.

The hotkey

Pause/Break by default. In the settings window you can set another key, alone or with Ctrl, Alt and Shift (Ctrl+F12, Alt+Shift+K), a double tap of Shift — two short taps in a row — or a tap of Ctrl+Alt. No Pause key? Try Fn+Pause, a combination such as Ctrl+F12, CapsLock or the double Shift. While the one key is Pause, the section «Hotkey» says so under the field — «No Pause key? A double Shift works too.» — and the welcome letter says the same, with the way there: «Settings → Hotkey».

A tap of Ctrl+Alt. Press Ctrl and the left Alt together and let both go: the tap counts when the last of them is up within 0.4 s of the first press and no other key or mouse button came between. Only the left Alt counts, with either Ctrl; the right Alt never does — in Russian, Polish, German and many other layouts it is Alt Gr, which Windows reads as Ctrl+Alt. Before the tap is set, the program warns that it can get in the way where Ctrl+Alt is needed for itself — VMware releases the mouse with it; remote desktop, virtual machines and games use it — and offers «Set it anyway» or «Choose another key». After «Set it anyway» the warning stays under the field in small grey letters. The tap can be either of the two keys described below.

Combinations Windows uses. Alt+Shift, Ctrl+Shift and Win+Space switch the input language in Windows, so the capture refuses them and says so. A combination Windows gives to one language in its «Hot keys for input languages» — Ctrl+Shift or the left Alt+Shift with a digit — is accepted, with a grey note under the field: while Lang Switcher is running, Lang Switcher gets it.

In the settings file %APPDATA%\Lang_Switcher\config.toml:

[hotkey]
key       = "F12"
modifiers = ["Ctrl"]    # any of "Ctrl", "Alt", "Shift"; [] for the key alone
trigger   = "press"     # press; double_tap (with key = "Shift" only); tap (Ctrl+Alt)

A tap of Ctrl+Alt is key = "LeftAlt", modifiers = ["Ctrl"], trigger = "tap".

One key or two. «One key», the default, fixes the typed word and switches the layout, as before. With «Two keys» in the section «Hotkey» each key has one job. «Fix typed text» only fixes: with nothing typed or selected it does nothing and knocks. «Switch layout» only switches to the next layout of the program and leaves the text, the selection and the clipboard as they are — after a word and a space it switches the layout for the next word. The second key is set the way the first one is; the double tap of Shift can belong to one of the two. The second key alone can also be a single tap of the left or the right Ctrl: the program first says what that can break — Ctrl shortcuts, games, remote desktop — and offers «Set it anyway» or «Choose another key»; after «Set it anyway» the warning stays under the field in grey until the key is changed. «Remove» beside «Set» of the second key clears it back to «Not set»; «Two keys» stays.

[switch_hotkey]
enabled = true          # «Two keys»; false — one key (the second key is kept for later)
key     = "ScrollLock"  # names as in [hotkey]; "LeftCtrl" or "RightCtrl" with trigger = "tap"
trigger = "press"       # press, double_tap (Shift) or tap (a single Ctrl, or Ctrl+Alt)

An older version of the program does not know this section: it works with one key and forgets the second one when it saves its settings. Nor does it know a tap of Ctrl+Alt: version 1.6.1 uses Pause instead and says under the field that it does not recognize the key.

Security and trust

A program that sees every key you press has to earn trust. What it does and does not do, in short; the details, and how to report a vulnerability, are in SECURITY.md.

Your keystrokes are never written to disk — not to the log, not to the settings, not to temporary files. In a password field the program keeps no record of your keys at all.

Why the program asks Windows for uiAccess. Windows does not let an ordinary program see the keys typed into the window of a program run as administrator, or type into it. The uiAccess flag of the program's manifest lifts that wall for the keyboard hook and for the keys the program types, and only for them: it gives no administrator rights. Windows grants it only to a program in a protected folder such as Program Files, signed with a certificate the computer trusts. The secure desktop — the UAC prompt, Ctrl+Alt+Del, the sign-in screen — stays out of reach all the same.

The full and the base version. The installer puts the full version, with uiAccess, when the program can be trusted on your computer: by the author's signature, or by the certificate it makes there (see What the installer does with a certificate). Otherwise, or with LangSwitcher-setup.exe /NOLOCALCERT, it puts the base version: the same code without uiAccess, which works everywhere except in the windows of programs run as administrator.

The signature, honestly. The program and the installer are signed with the author's own certificate, "Panda Koder", not one from a certificate authority, so the UAC prompt of the installer is yellow and names an unknown publisher. Updates are installed by the same installer, by itself, without a UAC prompt. The source of every release is in this repository under its tag (e116 is 1.6.0).

What goes over the network, and when.

Once a day Lang Switcher reads a short news file from the author's site; it sends nothing about your computer. When a new version comes out, the program downloads it from the same site by itself, checks the author's signature and installs it while the computer is idle. After an important update a small window by the tray icon tells you once what is new; it is turned off in the settings («Tell me about program updates»).

A message to the author from the wizard goes to the site only when you press Send yourself — exactly the text you saw before sending; a way to contact you is optional.

How it works, in detail:

  • The news file is https://panda-pishet-kod.dev/langswitcher/news.toml — one GET request with no parameters — but once: the first read after an installation (when the program creates its settings file itself) adds ?first=1 to the address, with no number and nothing about the computer, and stops after the site's first answer; an update sends no such mark. The header carries only the name and the version number of the program, for example LangSwitcher/1.6.0. If it does not come, the next try is not before tomorrow. Letters and news from it can be turned off in the settings file ([letters] feed = false). The last good copy of the file is kept in %APPDATA%\Lang_Switcher\news.toml, its signature is checked again at every start, and the uninstaller removes it.
  • Updates are installed not by the program itself but by a separate file without a window, LangSwitcherUpdate.exe, a scheduled task "Lang Switcher Update" running as the system. It takes the installer only from the /langswitcher/files/ folder of the same site; its size and SHA-256 must match the ones signed in the news file, and its version must be newer than yours. If the new version does not start, the previous one comes back. The updater reads the same news file at most once a day whether letters and news are on or off — that is how it learns of a new version — with the same header and never with the ?first=1 mark.
  • A message from the wizard is one POST request to https://panda-pishet-kod.dev/langswitcher/feedback, sent only when you press Send or Retry. It carries the text of the message as it stands in the window, the language of the interface, the kind of message (a problem or a suggestion), the version of the program, your contact if you typed one, and a random number of the request so that the site does not file a repeat twice. The program waits for the answer no longer than 15 seconds. If the site does not answer, the wizard offers to send the same text by email to [email protected] or to save it to a file.
  • A picture of an author's card (since 1.9.0). A card is a letter from the author with a picture, shown once in its term. Only when the news file names one does the program download its picture — one PNG or JPEG, one GET request after a good read of the news file, only from the /langswitcher/cards/ folder of the same site, no sooner than a week before the term and no larger than 1 MB. Its size and SHA-256 must match the ones signed in the news file before the picture is opened at all. It is kept in %APPDATA%\Lang_Switcher\cards\ and deleted when the term is over; the uninstaller removes the folder. With no card in the news file there is no such request, and with letters and news turned off there are no cards.

There is no other network activity. The details are in section 9 of the specification (in Russian).

Known issues

  • After a mouse click in a text field of Microsoft Edge, a layout switch — by Lang Switcher or by Windows' own keys — sometimes does not reach Edge: Windows counts the new layout as on, and Edge types in the previous one until it is restarted. This is Edge's own behavior: it happens with Lang Switcher stopped too.
  • In Windows 11 Notepad, after the right Alt has been pressed alone on the English layout, a tap of Ctrl+Alt opens the keytips of the Notepad menu — Notepad does so without Lang Switcher too: the word to be fixed stays as it was, and the next word typed goes into the keytips. A restart of Windows ends it; until then, choose another key in the settings.
  • Remote desktop. In an AnyDesk or RustDesk window on your own computer, Lang Switcher fixes a word with keys: it erases it and types the same keys again in the new layout. The keys become letters on the computer whose layout the remote-desktop program uses. In AnyDesk with the keyboard layout set to Auto or Local, and in RustDesk in the translate and legacy modes, that is your computer, and the word is fixed. In AnyDesk Remote and in RustDesk map (RustDesk's default), it is the remote computer, and the word stays as it was; there, run Lang Switcher on the remote computer and add AnyDesk.exe or rustdesk.exe to the exclusions on yours. Selected text in AnyDesk and RustDesk windows is not converted: the hotkey only switches the layout there. For Windows Remote Desktop Connection, run Lang Switcher on the remote computer; for TightVNC, on yours. If Lang Switcher runs on both computers, a double Shift in an AnyDesk or RustDesk window reaches the remote computer only as its first tap, and one copy fixes the word: yours. In AnyDesk the first word after connecting is sometimes fixed only in part, and a second press does not bring the fixed word back.

Reporting a problem or an idea

The tray menu → "Write to the author…" opens a short wizard: it collects what is useful (only what you leave ticked), shows you the whole text, and sends it with Send. Or open an issue in Issues — in English or Russian.

Building from source

cargo build --release

Before a release build:

cargo clippy -- -D warnings
cargo test

The tests are tied to the developer's machine (exactly two layouts, Russian and US) and are not expected to pass unchanged elsewhere; this is a decision of the project, not a defect. Every push is checked by GitHub Actions: cargo fmt --check, clippy of both builds and cargo test without the 25 tests that need the author's machine (the list and the reasons are in the workflow). The release scripts, the installer and the signing are described in README.ru.md and in the specification SPEC.md; like the other documents of the project, they are in Russian.

License and authorship

Copyright © 2026 Panda Koder

The source code is available under either of MIT or Apache-2.0, at your option: LICENSE-MIT, LICENSE-APACHE. Contributions are accepted under CLA.md; see CONTRIBUTING.md.

Explore projetos relacionados

Carregando…