Skip to content

feat(keyboard): long-press space can switch the language (#790) - #959

Merged
LeanBitLab merged 1 commit into
mainfrom
feat/space-long-press-language
Nov 27, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
feat/space-long-press-language

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Fixes #790

Change

Settings → Preferences → Change input method with space key was an on/off switch for opening the input method picker on a long press of the space bar. It is now a list:

  • Choose input method: opens the picker (default, same as the old "on")
  • Switch language: switches to the next language directly, without a popup. It does what the language switch key does, so it follows Language switch key behavior.
  • None: nothing (same as the old "off")

Compatibility

  • Stored in a new key space_long_press. Until it is set, the old boolean is read (Settings.readSpaceLongPress), so existing users keep their choice; no migration code.
  • All labels reuse translated strings: the title is unchanged, the items are "Choose input method" (the picker's own title), "Switch language" and "None". No new strings to translate; only a search word ("language switch long press") was added.
  • The language switch key's own long press (picker) is unchanged. Space keys with popup keys keep their popup as before.

Testing

  • SpaceLongPressTest (4): default, old switch off/on, new value wins. SettingsContainerTest 6: 0 failures. assembleStandardDebug builds; settings map unchanged.
  • Waydroid (English, Japanese, Korean, Chinese enabled): with "Switch language", each long press moved to the next language (English → Japanese → Korean → Chinese → English) and typed no space. With "Choose input method", the picker dialog opened as before.

"Change input method with space key" was an on/off switch for opening
the input method picker. It is now a choice: Choose input method (the
default and the old "on"), Switch language, or None (the old "off").
Switch language does what the language switch key does, following
"Language switch key behavior", without a popup.

The choice is stored in a new key; until it is set, the old switch is
read, so existing choices are kept. All labels reuse translated
strings. A search word lets "language" find the setting.
@LeanBitLab
LeanBitLab merged commit f5ef4e8 into main Nov 27, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the feat/space-long-press-language branch November 27, 2026 11:30
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.

[Feature]: Plz add "Long Press Space to Switch Language Instantly" option

1 participant