Skip to content

Android: Double/tripple tap selection does not show the context menu #935

@personalizedrefrigerator

Description

Describe the issue

Steps to reproduce

  1. Double-tap on a word in a CodeMirror editor.
  2. Tripple-tap on a different line.
  3. Long-press on a word in a CodeMirror editor.
  4. Open the web inspector (remote tools via chrome://inspect) and delete the mousedown listener on CodeMirror's contenteditable element.
  5. Double-tap on a word in a CodeMirror editor.
  6. Tripple-tap on a different line.
  7. Long-press on a word in a CodeMirror editor.

Observed behavior

  • Steps 1 and 2 do not display a context menu, but steps 5 and 6 do.
  • Steps 3 and 7 display context menus.

Expected behavior

As in other contenteditable regions, a context menu should open when selecting text with double/tripple-taps.

Environment

I experience this with extensions: [] and with the CodeMirror editor on codemirror.net.

Browser and platform

Chrome 104/Android 12; Android system WebView

Reproduction link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions