Skip to content

Handle special keys only when IME is not compositing#3189

Merged
raimund-schluessler merged 3 commits into
nextcloud:mainfrom
yan12125:ime-key-handling
Jun 29, 2026
Merged

Handle special keys only when IME is not compositing#3189
raimund-schluessler merged 3 commits into
nextcloud:mainfrom
yan12125:ime-key-handling

Conversation

@yan12125

Copy link
Copy Markdown
Contributor

This fixes interference between special keys (ESC, Enter, ...) for Chinese input methods and the UI.

Closes #2572


I drafted this change long time ago (in 2024, roughly before submitting #2572). I don't remember exact reasons to change keyup to keydown. I just remember keyup doesn't work with compositing detection.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

This fixes interference between special keys (ESC, Enter, ...) for
Chinese input methods and the UI.

Closes nextcloud#2572

Signed-off-by: Chih-Hsuan Yen <645432-yan12125@users.noreply.gitlab.com>
@raimund-schluessler raimund-schluessler added this to the 0.18.1 milestone Jun 29, 2026
@raimund-schluessler

Copy link
Copy Markdown
Member

Fine with me, though I cannot test whether it fixes the composition issue.

Signed-off-by: Raimund Schlüßler <raimund.schluessler+github@mailbox.org>
Refactor compositionstart and compositionend methods to remove event parameters.

Signed-off-by: Raimund Schlüßler <raimund.schluessler+github@mailbox.org>
@raimund-schluessler raimund-schluessler merged commit ca0dbc7 into nextcloud:main Jun 29, 2026
25 checks passed
@yan12125 yan12125 deleted the ime-key-handling branch June 29, 2026 23:58
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.

Special keys (ESC, Enter, ...) for Chinese input methods interfere with UI

2 participants