Skip to content

XKey Release Notes

XKey Contributors · A macOS Vietnamese input method with Telex and VNI typing modes, text macros, and optional translation tools.

CaskUtilitiesAuto-updates 554
Install command
brew install --cask xkey
30-day installs
175
#722 in App
1-year installs
1.2K
Last 365 days
Latest version
1.2.29
Download size
12MB
dmg
Release cadence
Daily
8 releases in 30 days
  1. 1.2.29-20261117

    Latest

    GitHub Release

    XKey v1.2.29 (Build 20261117)

    What's New

    fix(telex): keep the word literal after undoing a non-adjacent circumflex

    Typing "queuee" undoes the free-mark ê ("quêu" -> "queue") and sets tempDisableKey, but the vRestore branch then calls insertKey, whose phonetic checkSpelling() ignores vowel clusters and re-enables marks. The next tone key landed on an invalid cluster: "queuees" -> "queúe", "keuees" -> "keúe". Adjacent undo ("teees") was only safe because of the three-identical-vowels rule.

    Keep tempDisableKey set after a circumflex undo (a/e/o) so the rest of the word stays literal. dd, mark and w undo are unchanged. Affects Telex and Simple Telex 1/2; VNI was never affected (its undo key is a digit).

    Bump version to 1.2.29 (20261117).

    Refs #339

  2. 1.2.29

    Patch

    OpenNavo editorial Added to Homebrew

    XKey 1.2.29, build 20261117, keeps a word literal after you undo a Telex circumflex, so the next tone key no longer lands on an invalid cluster.

    Telex
    Undoing a Telex circumflex keeps the rest of the word literal (#339).queuee no longer becomes queúe, and keuee no longer becomes keúe.Adjacent undo, dd, mark, and w undo stay the same.

    XKey 1.2.29 is a macOS Vietnamese input update. Undoing a Telex circumflex now keeps the rest of the word literal, so the next tone key does not rewrite it.

    Released 17 November 2026, build 20261117. Official notes: https://github.com/xmannv/xkey/releases/tag/v1.2.29-20261117

    • Undoing a Telex circumflex keeps the rest of the word literal (#339).
    • queuee no longer becomes queúe, and keuee no longer becomes keúe.
    • Adjacent undo, dd, mark, and w undo are unchanged. VNI is unaffected.
  3. 1.2.28-20261116

    GitHub Release

    XKey v1.2.28 (Build 20261116)

    What's New

    fix(injection): reuse the private event source to stop a shared-memory leak

    Every CGEventSource(stateID: .privateState) maps a 16K shared-memory page that macOS never unmaps. Creating one per injection leaked about 70MB per day of typing (72MB of a 107MB footprint after 24.6h). Reuse the source from init and recreate it only when nil.

    Bump version to 1.2.28 (20261116).

  4. 1.2.28

    Expand

    OpenNavo editorial Added to Homebrew

    XKey 1.2.28 stops the Vietnamese input method from leaking about 70 MB of shared memory a day.

    Typing
    Reuse one private event source instead of creating one per injection.Recreate that source only when it is missing.

    XKey 1.2.28, build 20261116, released 16 November 2026, stops the Vietnamese input method from leaking shared memory while typing. Source: https://github.com/xmannv/xkey/releases

    • Each private event source mapped a 16K page that macOS never unmapped, about 70 MB a day of typing.
    • The input method now reuses one private event source and recreates it only when it is missing.
  5. 1.2.27-20261113

    Expand

    GitHub Release

    XKey v1.2.27 (Build 20261113)

    What's New

    feat(startup): keep the last language across relaunch

    XKey.app forced Vietnamese on at every cold start whenever the input source was enabled for it, discarding the E the user left it in. Only XKeyIM read the persisted flag, so the two hosts disagreed after a restart.

    The first input-source sync after launch now keeps the persisted language for apps without a Smart Switch entry. A saved per-app entry still wins, a source configured off still forces E, and later input-source switches keep re-enabling Vietnamese.

    • Add isInitialSync to handleInputSourceChange and a testable inputSourceSyncLanguage decision helper
    • Cover the launch precedence with LaunchLanguageTests
    • Bump MARKETING_VERSION to 1.2.27 and CURRENT_PROJECT_VERSION to 20261113
  6. 1.2.27

    Expand

    OpenNavo editorial Added to Homebrew

    XKey 1.2.27 keeps the last input language across a relaunch for people typing Vietnamese on a Mac.

    XKey 1.2.27, released November 13, 2026, keeps the last input language across a relaunch for people typing Vietnamese on a Mac. Official notes: https://github.com/xmannv/xkey/releases/tag/v1.2.27-20261113

    • A cold start no longer forces Vietnamese on when that input source is enabled, so the English state you left is kept.
    • The first input-source sync after launch keeps the saved language for apps without a Smart Switch entry.
    • A saved per-app entry still wins, a source set off still forces English, and later switches still turn Vietnamese back on.
  7. 1.2.26-20261111

    Expand

    GitHub Release

    XKey v1.2.26 (Build 20261111)

    What's New

    feat(undo): add option to undo words whose mark was cancelled by a repeated key

    In Telex a repeated mark key ("ff", "rr") cancels the mark and swallows one key, so "traffic" shows as "trafic" and "current" as "curent". Undo typing refused these words because canUndoTyping only accepted words that still carry a diacritic, so the undo hotkey passed through.

    Add an opt-in sub-option under "Hoàn tác gõ tiếng Việt" (default off). When on, canUndoTyping also accepts a word whose raw keystroke count differs from the characters on screen. The keystroke sequence already keeps both repeated keys, so undoTyping restores "traffic" unchanged.

    • Thread undoTypingAfterMarkCancel through Preferences, SharedSettings, EngineSettings, RuntimePreferences and KeyboardEventHandler
    • Show the setting in the General section and the debug summary
    • Bump MARKETING_VERSION to 1.2.26 and CURRENT_PROJECT_VERSION to 20261111

    Fixes #334

  8. 1.2.26

    Expand

    OpenNavo editorial Added to Homebrew

    Xkey 1.2.26, build 20261111, released on 2026-11-11, adds an optional undo so Mac users typing Vietnamese can restore a word after a repeated Telex mark key cancelled its accent.

    Xkey 1.2.26, build 20261111, released on 2026-11-11, is a Vietnamese input method for Mac. This version adds an optional undo for words whose tone mark was cancelled by pressing the same key twice.

    • In Telex, pressing a mark key twice, as in "ff" or "rr", cancels the mark and swallows one key, so "traffic" appears as "trafic" and "current" as "curent".
    • Undo typing previously refused these words because it only accepted words that still carry a diacritic, so the undo hotkey passed through.
    • A new sub-option under "Hoàn tác gõ tiếng Việt" is off by default. When on, undo also accepts a word whose raw keystroke count differs from the characters on screen.
    • The keystroke sequence already keeps both repeated keys, so undo restores "traffic" unchanged.
    • The setting appears in the General section and the debug summary.

    Source: https://github.com/xmannv/xkey/releases/tag/v1.2.26-20261111

  9. 1.2.25-20261011

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20261011)

    What's New

    feat(dictionary): add selected text to personal dictionary via Services menu and global hotkey

    • macOS Services item "XKey: Thêm vào từ điển cá nhân" (localized en/vi/zh-Hans) splits the selection into normalized words and adds them all
    • Configurable global hotkey (Settings → Advanced → Từ điển cá nhân) routes through HostCommand.addSelectionToUserDictionary on both the local HID tap and the remote/session callback; XKeyIM returns .unsupported so the event reaches the main app
    • Shared UserDictionaryService pipeline for both entry points: extract, normalize, dedup, batch insert (single write + tombstone clearing), confirm alert for the hotkey path, centered HUD feedback
    • Best-effort re-enable of the Services entry in pbs NSServicesStatus at launch (merges flags, preserves key_equivalent), plus a Settings hint and "Open Keyboard Settings" shortcut
    • Bump CURRENT_PROJECT_VERSION to 20261011
  10. 1.2.25-20261003

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20261003)

    What's New

    fix(hotkey): ignore modifier-only hotkey on hold, extra modifier, or mouse/media input

    A modifier-only toggle (e.g. Fn) fired on release even when the key was held as a modifier for other actions. Fire only on a tap under 0.5s with no extra modifier added, and cancel the pending toggle on mouse or media-key events, which are outside the event tap mask. A spoiled gesture cannot re-arm until all modifiers are released.

    Fixes #328

  11. 1.2.25-20261002

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20261002)

    What's New

    fix(secure-input): remind on app switch and focus change, sampled after settle

    The warning toast auto-hides after 5s but the monitor deduplicated on the last delivered presentation, so a holder that stays active in the background was announced once and then silently blocked typing.

    • SecureInputMonitor.evaluate(remind:) re-shows the warning while Secure Input is still active; it never shows while inactive.
    • App switches and real focus changes (signatureChanged) remind through remindAfterSettle(), 250ms later, coalesced so a burst shows one toast: measured with an NSSecureTextField holder, Secure Input was still on at every didActivateApplication notification and off 50ms later, so the old synchronous sample was stale in both directions. A pending reminder is sticky until a current delivery consumes it, so a keystroke evaluation that supersedes it cannot swallow it.
    • XKeyIM marked-text mode has no TapEventSource, so IMKit activation now schedules the same reminder.
    • Skip the delivery hop when Secure Input is off, was off, and nothing is shown or pending to hide; generations stay untouched so an in-flight hide is not made stale.
    • XKeyIMController evaluates Secure Input once per keystroke, before the armed return (IMKit is the armed mode's only per-keystroke signal while Secure Input blinds the tap); drained pending events re-evaluate.
    • Bump build number to 20261002.
  12. 1.2.25-20260930

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20260930)

    What's New

    fix(rules): limit Telegram Web rule to browsers via browsersOnly option

    The "Telegram Web" window title rule matched every app whose title contained "Telegram", including native clients. Add a browsersOnly flag to WindowTitleRule (checked against the known browser bundle ID sets) and expose it as a toggle in the rule form. It is persisted only when true, so existing rules decode unchanged.

  13. 1.2.25-20260929

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20260929)

    What's New

    fix(smart-switch): restore per-app language on app entry, not from an AX pass

    Since 95af7cd, Smart Switch ran only inside the AX pass the app-switch block schedules. AX passes are last-writer-wins: any newer one drops the pass in flight. The switch clears the confirmed injection method, so the first keystroke in the new app asks the tap for a detection pass, and that pass superseded the app-switch one without publishing any app context. A click's focus check, or a title-change pass with an unchanged title, did the same. In Electron apps (Slack, Claude Desktop), whose AX round-trips run up to the 0.25s messaging timeout, the user nearly always types or clicks before the pass lands, so the saved language was never restored for that activation. Native apps finish the pass first, which is why the feature looked intermittent.

    Split AppContext into entries and refinements with appliesSmartSwitch:

    • Entries (TapEventSource.start, app activation, overlay open and close) are published synchronously from the bundle ID alone. Only an entry restores or records an app's language, reloads the per-app map, and sets smartSwitchHandledBundleId.
    • Every AX pass publishes a refinement that re-applies the exclusion and window-title rules. That includes the detection pass, a focus check with no focused element, and a title pass whose title did not change, so a superseded pass no longer loses the rules either. A pass that lands while a launcher is open describes the launcher, not the app beneath it. Re-evaluating after the Window Title Rules hotkey is a refinement too.
    • An entry has no window title, so it cannot tell that no rule covers the window. AppPolicyRuntime.inputSourceRuleAction now decides the target-input-source rule and only restores the pre-rule source from a context that has the title. Restoring from the entry flipped the source out and back on every Spotlight close in a rule-switched window. App-wide rules still switch at entry.

    Two sticky decisions also left typing broken:

    • .restoreVietnamese stayed the handler's decision, so the user's next toggle changed the menu bar but not the typing. It is now applied once.
    • A disabled input source stored .disableTransformation, and switching back to ABC never cleared it. It is now a separate inputSourceEnabled gate. The gate is read for overlays too, since the source is global, and handleInputSourceChange updates it. Under such a source the rules still apply, but no app's language is restored or recorded. handleInputSourceChange then restores the language from a freshly loaded map, because returning from XKeyIM there was no entry to reload it.

    Remove what this left dead, and what was already dead:

    • AppDelegate's handleSmartSwitch, restoreLanguageForCurrentApp, enableVietnameseForOverlay, saveLanguageForOverlay and overlayNameToBundleId.
    • VNEngine's checkSmartSwitchForApp, checkSmartSwitch, handleAppSwitch and getCurrentAppBundleId.
    • SmartSwitchManager's saveToPlist (a whole-map write that dropped the other process's entries), removeApp, clearAll and getAllApps, plus SharedSettings.setSmartSwitchData.
    • TapEventSource's focusCheckObserver, which observed an NSWorkspace notification on NotificationCenter.default and so never fired.

    Bump the build number to 20260929.

  14. 1.2.25-20260916

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20260916)

    What's New

    fix(engine): drop the cancelled 'd' modifier when "ddd" undoes "đ"

    Typing d-d-d-o-s shows "ddó" on screen, but restore-on-wrong-spelling replayed "dddos" instead of "ddos". The third 'd' was counted twice in the restore record: insertD's undo branch stripped TONE_MASK without removing the modifier keystroke that dd→đ had recorded, while the vRestore branch of processKey re-inserts that same key as its own entry.

    The undo branch now drops it through a new TypingBuffer.removeModifier(at:keyCode:), which targets the key the undo actually cancelled rather than the newest modifier — an entry can carry both a horn and a tone.

    This stays scoped to 'd'. The other undo gestures must keep the cancelled modifier: a tone key never reaches the screen, so the record is what heals the swallowed keystroke ("address" restores both 's'), and a vowel undo leaves Vietnamese off for the rest of the word, so no restore ever runs. Only the 'd' path re-enables processing (the "Allow d after consonant" rule in insertKey), which is what exposed the double count.

    Also bump CURRENT_PROJECT_VERSION to 20260916.

  15. 1.2.25-20260915

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20260915)

    What's New

    fix(hotkey): keep a cleared hotkey cleared across settings reloads

    Clearing a hotkey stores keyCode 0 with no modifiers, which loadPreferences read back the same as a key that was never written, so the built-in default came back the next time the settings window opened (#324).

    Check for the presence of the stored key instead of its value, for the four hotkeys whose default is non-empty: toggleHotkey, tempOffToolbarHotkey, translationHotkey and debugHotkey.

    A cleared toggle hotkey also matched a plain "A" keystroke, because keyCode 0 with no modifiers is what an unmodified "A" key down carries. Add Hotkey.isUnset and unregister the hotkey instead of arming it; the other hotkeys already guard on keyCode, which the toggle hotkey cannot use because it supports modifier-only combinations.

    Bump the build number to 20260915.

  16. 1.2.25-20260828

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20260828)

    What's New

    fix(smart-switch): keep excluded apps out of Smart Switch

    The excluded-app check only ran in the per-keystroke path, so an app on the exclusion list still took part in Smart Switch: activating it restored its saved language and flipped the menu bar to V, and the state it recorded then leaked to the next app that had no saved entry of its own.

    Move the passthrough and user-list logic into isAppExcluded(bundleIdentifier:) — dead until now — so it also honours the exclusionRulesEnabled master switch, and have isCurrentAppExcluded() delegate to it after its overlay exemption. The tap path behaves exactly as before; the Smart Switch paths now share the same predicate and skip excluded apps when restoring on app switch, when an input source change arrives, when an overlay is dismissed, and when the user toggles E/V by hand.

    Overlay apps (Spotlight, Raycast, Alfred) are never excluded by design, so their Smart Switch sites are left untouched.

    Fixes #321

  17. 1.2.25-20260818

    Expand

    GitHub Release

    XKey v1.2.25 (Build 20260818)

    What's New

    fix(injection): reduce AX queries into web renderer to stop Gmail/Chrome freeze

    Two mechanisms caused intermittent typing freezes in heavy web editors (Gmail compose in Chrome):

    1. FocusedElementInfo.from() eagerly queried AXDOMClassList and AXDOMIdentifier on every snapshot. These attributes are served by the browser's web renderer, forcing Chromium to keep web accessibility enabled for the page — janking heavy pages like Gmail.

    2. getConfirmedInjectionMethod() did not store its live-detection fallback result. Since clearMethodCache() runs on every mouse click, arrow key, and app switch, every subsequent keyDown re-ran a full AX snapshot on the event-tap thread until an async re-prime, stalling the tap (and all typing) whenever the focused app was slow to answer.

    Changes:

    • Store the Priority-2 fallback via setConfirmedInjectionMethod, same pattern as consumePendingMethodReprobe.
    • Make domIdentifier/domClasses lazy providers (same pattern as textValueProvider); snapshot drops to 5 eager AX calls.
    • signature uses domIdentifierIfLoaded so the hot path never fires the lazy renderer query.
    • Gate the DOM-attribute fallback in isChromiumAddressBar and isFirefoxStyleAddressBar by role == AXTextField: the omnibox/urlbar are native text fields, web content never is. Eager checks (identifier, description) now run before the DOM legs, keeping localized-UI detection working.

    Preserved: Notion code block detection, rules with AX patterns, built-in title-only rules (never fire DOM queries), address bar detection on localized browser UIs.

    Tests: FocusedElementInfoLazyTests (17 cases) covering lazy semantics, signature behavior, and all address-bar gate branches. Full XKeyTests suite passes; XKeyIM target builds.

    Also: bump version to 1.2.25 (build 20260818), ignore graphify-out/ and .codegraph/ local tooling dirs.

  18. 1.2.25 (20261011)

    Expand

    OpenNavo editorial Added to Homebrew

    CompatibilitymacOS 12 or later

    XKey 1.2.25 (20261011)

    Adds selected text to the personal dictionary through macOS Services or a configurable global hotkey.

    Selected official build highlights.

    Adds selected text to the personal dictionary through macOS Services or a configurable global hotkey.

    • The Services command and hotkey share a pipeline that extracts and normalizes words, removes duplicates, and inserts them in one batch.
    • The hotkey path asks for confirmation and displays centered HUD feedback.

    XKey

  19. 1.2.25

    Expand

    OpenNavo editorial Added to Homebrew

    Fixes modifier-only hotkey toggles firing during holds or modified gestures, and cancels a pending toggle when mouse or media-key input interrupts it.

    Hotkeys
    Modifier-only toggles now fire only on a tap under 0.5 seconds.Extra modifiers or mouse/media input cancel the pending toggle.A spoiled gesture cannot re-arm until all modifiers are released.

    XKey 1.2.25 fixes modifier-only hotkey behavior. Previously, a modifier-only toggle, such as Fn, could fire on release even when that key had been held as a modifier for another action. It now toggles only when tapped for less than 0.5 seconds and no extra modifier is added.

    Mouse or media-key events cancel a pending toggle. These events are outside the event tap mask, so they are handled by canceling the pending gesture; after a gesture is spoiled, it cannot re-arm until all modifiers are released. This change fixes #328.

    Official release notes

  20. 1.2.25 (20261002)

    Expand

    OpenNavo editorial Added to Homebrew

    XKey 1.2.25 (20261002)

    Re-shows Secure Input warnings on app switches and focus changes while Secure Input remains active.

    Selected official build highlights.

    Re-shows Secure Input warnings on app switches and focus changes while Secure Input remains active.

    • App-switch and focus-change reminders are sampled after a 250 ms settling delay and coalesced to avoid a burst of toasts.
    • Warnings appear only while Secure Input is active; XKeyIM activation also schedules the reminder.

    XKey

  21. 1.2.24-20260721

    Expand

    GitHub Release

    XKey v1.2.24 (Build 20260721)

    What's New

    feat(statusbar): add option to toggle input on single click

    Add a statusBarClickToToggle preference (default off, backward compatible). When enabled, a left-click on the menu bar icon toggles Vietnamese/English input directly, while right-click or Control-click opens the menu. When disabled, any click opens the menu as before.

    • Add the preference to Preferences and persist it in SharedSettings

    • Route clicks in StatusBarManager based on the preference and event type

    • Add a settings toggle in the General section with a description

    • Log the setting in the debug info dump

    • Add en and zh-Hans localizations for the new UI strings

    Also bump the app version and rewrite the README with bilingual (Vietnamese/English) documentation.

  22. 1.2.24

    Expand

    OpenNavo editorial Added to Homebrew

    Build 1.2.24,20260721 adds an optional single-click input toggle for the status bar icon.

    Status bar
    Optional left-click input toggleRight-click or Control-click opens menuPreference is off by default
    Settings
    Toggle added to General preferencesChoice is saved and shown in debug infoEnglish and Simplified Chinese UI text

    Build 1.2.24,20260721 adds the statusBarClickToToggle preference, which is off by default and backward compatible. When enabled, left-clicking the menu bar icon switches directly between Vietnamese and English input. Right-clicking or Control-clicking still opens the menu. When the preference is disabled, any click opens the menu as before.

    The option is available in the General section of Preferences, and its value is persisted in SharedSettings and included in the debug info dump. New UI strings are localized in English and Simplified Chinese. The README was rewritten with Vietnamese and English documentation.

    Source: XKey 1.2.24 release notes