Skip to content

#2106 fix: show dialog when using in-app keyboard switcher to disable auto-switch#2113

Open
sds100 wants to merge 1 commit intodevelopfrom
claude/issue-2106-auto-switch-ime-dialog
Open

#2106 fix: show dialog when using in-app keyboard switcher to disable auto-switch#2113
sds100 wants to merge 1 commit intodevelopfrom
claude/issue-2106-auto-switch-ime-dialog

Conversation

@sds100
Copy link
Copy Markdown
Collaborator

@sds100 sds100 commented Apr 12, 2026

Closes #2106

Summary

  • When the user taps "Choose keyboard" from the home screen menu and the automatic keyboard switching feature is currently enabled, a dialog is shown warning that choosing a keyboard here will disable the auto-switch feature
  • If the user confirms (OK), auto-switch is disabled and the IME picker opens
  • If the user cancels, nothing happens — auto-switch stays on and the picker is not shown
  • If auto-switch is already disabled, the IME picker opens immediately as before

This prevents the confusing experience where a user manually selects a keyboard from the IME picker, only to have KeyMapper immediately switch back to its own IME via the auto-switch feature.

Changes

File Change
FixKeyEventActionDelegate.kt Added isAutoSwitchImeEnabled: Flow<Boolean> to the interface and implementation, reading from the changeImeOnInputFocus preference
KeyMapListViewModel.kt showInputMethodPicker() now launches a coroutine, checks whether auto-switch is on, shows the confirmation dialog if so, disables the feature on confirm, then shows the IME picker
strings.xml Added dialog_title_disable_auto_switch_ime and dialog_message_disable_auto_switch_ime strings

https://claude.ai/code/session_01AdijnJnpbsCqPDTYobwnLa

… auto-switch

When the user taps the "Choose keyboard" menu item on the home screen
and the automatic keyboard switching feature is enabled, show a dialog
warning that auto-switch will be disabled. If the user confirms, the
feature is turned off and the IME picker is opened. This prevents
KeyMapper immediately and silently switching back to its own IME after
the user has deliberately selected another keyboard.

https://claude.ai/code/session_01AdijnJnpbsCqPDTYobwnLa
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.

Don't auto-switch keyboard if user uses in-app keyboard switcher

2 participants