Skip to content

Conversation

@miku1958
Copy link

@miku1958 miku1958 commented Dec 1, 2024

By forwarding the keyDown event, you can directly debug IMKInputController in an NSTextView.

To do this, we need to:

  1. Adding IMKInputController and related files to an individual framework.
  2. Separate SquirrelApplicationDelegate to make rime work properly.
  3. Create a custom IMKTextInput client
  4. Disable super.init(server: server, delegate: delegate, client: client) as Custom IMKTextInput Client not recognized by AppKit
  5. Forwarding text changes to textView

Demo:
image

@miku1958 miku1958 force-pushed the miku1958/InputController branch from 63d7f93 to ae99c2b Compare December 22, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant