Skip to content

Settings: a button to try the keyboard on the appearance and suggestion screens - #903

Merged
LeanBitLab merged 1 commit into
LeanBitLab:mainfrom
4di-hello:feature/settings-test-field
Nov 27, 2026
Merged

LeanBitLab merged 1 commit into
LeanBitLab:mainfrom
4di-hello:feature/settings-test-field

Conversation

@4di-hello

@4di-hello 4di-hello commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

To see the effect of a changed theme, key size or suggestion setting, you have to leave the settings and open another app, then come back.

  • A keyboard button in the top bar of the Appearance and Suggestions screens shows a text field "Try the keyboard here" below the bar. It only takes space while shown, doesn't scroll away with the settings, and gets the focus so the keyboard opens right away. It closes with the button, its X (when empty) or back.
  • Nothing typed there is learned: Compose text fields can't set IME_FLAG_NO_PERSONALIZED_LEARNING, so the field sets a new private IME option noPersonalizedLearning (with the keyboard's package name), which the keyboard treats like that flag (unit test in InputAttributesTest).
  • A short hint says that changes are shown the next time the keyboard opens and that nothing typed there is learned. One small composable (KeyboardTestField), two strings (English and German).

🤖 Generated with Claude Code

@LeanBitLab LeanBitLab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, trying changes in place is useful. We'd prefer not to take permanent space on two screens, and the field scrolls out of view. Could it be a top-bar button that shows the field only when needed? Please also check whether text typed there gets learned by personalized suggestions.

…estion screens

A button in the top bar of these screens shows a text field below the bar,
where changes (theme, key size, suggestions) can be tried without leaving the
settings. It only takes space while shown, doesn't scroll away, gets the focus
so the keyboard opens, and is closed with the button, its X (when empty) or
back.

Nothing typed there is learned: Compose text fields can't set
IME_FLAG_NO_PERSONALIZED_LEARNING, so the field sets the new private IME
option noPersonalizedLearning (with the keyboard's package name), which the
keyboard treats like that flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@4di-hello
4di-hello force-pushed the feature/settings-test-field branch from e32b2b7 to b55e9b0 Compare November 27, 2026 06:35
@4di-hello

Copy link
Copy Markdown
Contributor Author

Thanks! It's now a keyboard button in the top bar of the two screens that shows the field below the bar only when needed; it doesn't scroll away and opens the keyboard right away. And yes, text typed there was learned before: Compose fields can't set IME_FLAG_NO_PERSONALIZED_LEARNING, so the field now sets a private IME option noPersonalizedLearning that the keyboard treats like that flag (with a test).

@4di-hello 4di-hello changed the title Settings: a field to try the keyboard on the appearance and suggestion screens Settings: a button to try the keyboard on the appearance and suggestion screens Nov 27, 2026

@LeanBitLab LeanBitLab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the on-demand field no longer takes permanent space, and learning is disabled for it. The InputAttributes tests pass on current main (the screens were not tested on a device).

@LeanBitLab
LeanBitLab merged commit 91631f0 into LeanBitLab:main Nov 27, 2026
1 check passed
@LeanBitLab

LeanBitLab commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Screenshot_20261127-215541_LeanType debug.png

Not as useful as I thought I might remove this
It just 90% what search button already do

LeanBitLab added a commit that referenced this pull request Nov 27, 2026
The search bar in settings already opens the keyboard, so the extra
button on the Appearance and Suggestions screens added little. Removes
the field, its private no-learning IME option, the top bar button and
its strings in all languages, and drops it from the 4.3.9 changelogs.

Kept: settings reload when a field's IME options change (3af575d),
which fixes incognito detection in other apps too.

Claude-Session: https://claude.ai/code/session_017YwBxUkrN8xGpPwSLZEoAi
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