Skip to content

fetch upstream#1

Closed
expoli wants to merge 22 commits intomasterfrom
dev
Closed

fetch upstream#1
expoli wants to merge 22 commits intomasterfrom
dev

Conversation

@expoli
Copy link
Owner

@expoli expoli commented Oct 14, 2025

No description provided.

fxliang and others added 22 commits August 1, 2025 16:54
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
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.
@expoli expoli closed this Oct 14, 2025
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.

2 participants