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

New APIs for remappable keybindings #630

Open
kanru opened this issue Jul 25, 2024 · 0 comments
Open

New APIs for remappable keybindings #630

kanru opened this issue Jul 25, 2024 · 0 comments
Labels
Milestone

Comments

@kanru
Copy link
Member

kanru commented Jul 25, 2024

Is your feature request related to a problem? Please describe.

Currently each chewing_handle_X API has predefined functionality, yet they are not documented. The behaviors are documented in the usage document only. So when IM want to disable Shift+Space for fullwidth toggle, or other behaviors, we have to provide specific options.

Describe the solution you'd like

Define public Chewing state machine states, and actions, and default key bindings. Then provide new set of APIs to configure the key bindings.

For example,

State Action Default Key Binding
Entering Input Any
Entering Toggle Fullwidth Shift + Space
Selecting Select 0 0

The selKeys option can be rebuild on top of this new feature.

Describe alternatives you've considered

Not at this moment.

Additional context

#605

@kanru kanru added the feature label Jul 25, 2024
@kanru kanru added this to the v0.10.0 milestone Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant