Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Demo to facilitate debug #1001

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

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