Skip to content

Conversation

@scarf005
Copy link
Contributor

@scarf005 scarf005 commented Jan 6, 2026

Pass KEYCODE_LANGUAGE_SWITCH events to the system handler instead of consuming them in Termux, allowing keyboard layout switching to work on external keyboards.

used exact code in #4133 (comment)

Fixes #4133

Handle KEYCODE_LANGUAGE_SWITCH to allow keyboard layout switching
on external keyboards by passing the event to system handler.

Fixes termux#4133

Co-authored-by: uncher <[email protected]>
@scarf005 scarf005 force-pushed the fix-language-switch-keyboard branch from 68bfb2e to 61a7456 Compare January 6, 2026 00:21
@scarf005 scarf005 changed the title Fixed: Allow language switch key on external keyboards fix: Allow language switch key on external keyboards Jan 6, 2026
@fornwall fornwall changed the title fix: Allow language switch key on external keyboards Fixed: Allow language switch key on external keyboards Jan 7, 2026
@fornwall fornwall merged commit 7d87ed7 into termux:master Jan 7, 2026
@fornwall
Copy link
Member

fornwall commented Jan 7, 2026

Nice - thanks!

fornwall added a commit to termux-play-store/termux-apps that referenced this pull request Jan 7, 2026
Handle KEYCODE_LANGUAGE_SWITCH to allow keyboard layout switching
on external keyboards by passing the event to system handler.

From termux/termux-app#4923
@scarf005 scarf005 deleted the fix-language-switch-keyboard branch January 7, 2026 03:59
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.

[Bug]: Cannot change language with external keyboard.

2 participants