Conversation
fonts/fontset.json
{
cand_font: LXGWWenKai-Regular.ttf,
font: segoepr.ttf
}
fonts/*.ttf or fonts/*.otf
feat: add key_main_font and key_alt_font for keyview, when font for all AutoScaleTextView
…and im.subMode.label
This commit introduces the ability to send Ctrl+key combinations from the popup keyboard. - `PopupKeyboardUi` now handles keys prefixed with "Ctrl+". - It parses the key string to extract the actual character. - It attempts to map the character to a `KeyEvent.KEYCODE` and uses `service.sendCombinationKeyEvents` to send the Ctrl modified key event. - If mapping to `KEYCODE` fails, it falls back to sending an `FcitxKeyAction` with the `Ctrl` state. - The `FcitxInputMethodService` instance is now passed to `PopupKeyboardUi` to enable sending combination key events. - `PopupPreset` has been updated to include "Ctrl+[Key]" options for all Latin characters (both lowercase and uppercase) in their respective popup arrays.
This change ensures that when the Enter key is pressed on a physical keyboard, it's processed by the `handleReturnKey()` function rather than being sent directly as a raw key event. This allows for custom handling of the Enter key.
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.
No description provided.