fix(macos): map KEY_HANGEUL to Control-Space - #474
Open
mrcha033 wants to merge 1 commit into
Open
Conversation
mrcha033
marked this pull request as ready for review
July 27, 2026 13:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
KEY_HANGEULbefore the generic evdev-to-macOS keycode mapping, whereLANG1currently becomes unsupported macOS keycode0xffffControl down -> Space down/up -> Control upchord once on the initial key pressValidation
cargo fmt --all -- --checkcargo test --workspace --all-features --lockedcargo clippy -p input-emulation --all-targets --all-features --locked -- -D warningsCombinedSessionStatesource and HID event tap: the exact four-event chord switchedABC -> 2-Set Hangul -> ABCScope and limitations
This is the Linux/Arch-to-macOS emulation path only. It intentionally does not remap macOS Control-Space on capture toward Linux.
The behavior follows the macOS "Select the previous input source" shortcut. If Control-Space is disabled or remapped, or if more than two keyboard input sources are enabled, the result may not be a direct Korean/Latin toggle. The live check used the default enabled Control-Space shortcut with ABC and 2-Set Hangul. Pre-held modifier combinations remain outside the verified live scope.