Skip to content

Back Button Fails to Dismiss Context Menu Toolbar on Android #2527

@EchoEllet

Description

@EchoEllet

Have you checked for an existing issue?

Flutter Quill Version

11.2.0

Steps to Reproduce

  1. Run on a real Android device and select some text.
  2. Once the context menu (AKA toolbar) is shown, press the back button
  3. The context menu is being ignored without dismissing it; it could lead to navigating back to the previous screen or closing the app.

Expected results

The toolbar should be dismissed instead. I don't remember this was an issue before, and I'm not sure which change made this regression.

Actual results

The context menu is still being displayed, and instead, the back button dismisses the keyboard or navigates back to the previous screen, or closes the app.

See the attached video for details.

Additional Context

Screenshots / Video demonstration

Current behavior:

FlutterQuillBuggyBehavior.mp4

Expected behavior (Keep notes app as an example):

KeepNotesCorrectBehaviorExample.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidIssues or feature requests specific to the Android platform.bugSomething isn't workingfeedback requestedSeeking user input to improve features, resolve issues, or plan future updates.help wantedExtra attention is neededmajorSignificant impact on the user experience or performance. This issue should be addressed in the nextregressionFor issues where a previously working feature is now broken due to recent changes.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions