Skip to content

Long press on toolbar keys fails when "Separated" from suggestions #55

@Star-Wing

Description

@Star-Wing

Description

​There is an inconsistency with long-press detection on the toolbar depending on the layout configuration. When the Toolbar and Suggestions are combined/not split, long-press actions (such as long-pressing 'Paste' for clipboard history or 'Arrows' for start/end) work perfectly. However, when they are set to be separated into two different rows, the long-press actions on the toolbar keys stop functioning entirely.

​Steps to Reproduce

  • ​Go to Settings > Appearance > Toolbar.
  • ​Ensure Toolbar and Suggestions are enabled.
  • ​Configure the layout so the Toolbar and Suggestions are not split/separated (they share a row).
  • ​Verify that a long press on a toolbar key (e.g., Paste) works.
  • ​Change the setting to separate them (placing them on distinct rows).
  • ​Attempt to long-press any toolbar key.

​Expected Behavior
​Long-press actions should be registered regardless of whether the toolbar is merged with the suggestion bar or separated into its own row.
​Actual Behavior
​When separated, the toolbar only registers short taps. Long-press events seem to be ignored or intercepted by the suggestions row overlay.

Environment
​Device: [OnePlus]
​Android Version: [16]
​LeanType Version: [3.7.5]
​Layout: [QWERTY]

Technical Log Analysis:
I captured a logcat using aShell You while reproducing the issue. Key observations:

  1. Touch Events: InputDispatcher confirms ACTION_DOWN events are reaching the InputMethod window (e.g., at x: 1344, y: 2752).
  2. Interception: Several logs note: action_down is in interception region. It appears that when the toolbar is separated from suggestions, the touch listener might be conflicting with system navigation gestures or the suggestions row overlay.
  3. IME Behavior: com.leanbitlab.leantype requests clipboard access (clipboardAccessAllowed: true), but no onLongPress event is ever triggered when the rows are split.
    Environment Details from Log:
  • Package: com.leanbitlab.leantype
  • Device Resolution: 1440x3168

aShellYou__20260404201220.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions