← apps
Latchkey
Forces your keyboard layout back to the one you chose, every time you switch apps.
A tiny native macOS background utility. Every time you switch to another app, Latchkey forces the system keyboard input source back to the one you picked. Choose your default layout once and you’ll always start typing in the right one.
- No Accessibility permission required — it uses Text Input Sources (
TISSelectInputSource) and listens to app-activation notifications. - Picker lists only the input sources currently enabled in the system.
- Launch at login via
SMAppService. - Accessory app: no Dock icon, no menu bar (
LSUIElement), single instance. - First launch shows the window to configure; login launches stay hidden.
- Pure AppKit + SwiftUI, no third-party dependencies.
How it works. Open Latchkey once, pick your preferred layout, and let it run in the background. From then on, whenever you activate another app, it silently resets the keyboard input source — so you never start typing in the wrong language again.
Requires macOS 13+.