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

Create new API for managing a temporary mode. #1238

Open
wengxt opened this issue Jan 27, 2025 · 0 comments
Open

Create new API for managing a temporary mode. #1238

wengxt opened this issue Jan 27, 2025 · 0 comments

Comments

@wengxt
Copy link
Member

wengxt commented Jan 27, 2025

Summary

Right now, there are modules, including unicode, quickphrase, input method selector, that are acting as an engine independent mode.

They share lots of common code:

  1. A shortcut to trigger the mode
  2. grab all keys after mode is triggered.
  3. release the grab after existing the mode

We want to introduce a new API, to:

  1. reduce the code duplication for such usecase
  2. at the same time, additionally return the descriptive name of such mode, as a replacement of "inputMethodLabel" and "inputMethodEntry" for display the current name of the mode.
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

No branches or pull requests

1 participant