Skip to content

fix(card-template-editor): dismiss keyboard before 'discard changes' - #21825

Open
david-allison wants to merge 4 commits into
ankidroid:mainfrom
david-allison:21807
Open

fix(card-template-editor): dismiss keyboard before 'discard changes'#21825
david-allison wants to merge 4 commits into
ankidroid:mainfrom
david-allison:21807

Conversation

@david-allison

Copy link
Copy Markdown
Member

Note

Assisted-by: GPT-6

Fixes

Approach

A number of abstractions were tested, and I settled on isKeyboardOpen, plus a few pre-refactors.

After this, it exposed a bug in currentFragment, which I fixed

How Has This Been Tested?

Heavily unit tested

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

@david-allison david-allison added the Needs Author Reply Waiting for a reply from the original author label Sep 12, 2026
A software keyboard hides the Front/Back/Styling tabs, so 'back' should
dismiss it to reveal them.

Fixes 21807

GPT-6 wrote the fix; Claude Opus 5 - fixups/review

Assisted-by: GPT-6 - fix
Assisted-by: Claude Opus 5 - fixups/review
Deleting a card type changes the pager's item IDs
so an `ord` lookup failed.

Discovered due to 21807

Assisted-by: GPT-6
@david-allison david-allison removed the Needs Author Reply Waiting for a reply from the original author label Sep 12, 2026
@david-allison david-allison added this to the 2.25 release milestone Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Card Template Editor: Pressing 'Back' shows 'Discard changes' rather than closing the keyboard

1 participant