https://bugs.kde.org/show_bug.cgi?id=522987

            Bug ID: 522987
           Summary: FormLinkDelegate: Don't show menu on long press on
                    desktop
    Classification: Frameworks and Libraries
           Product: kirigami-addons
      Version First 1.12.1
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
When running a Kirigami-based app containing FormLinkDelegates on desktop, it
is non-standard behavior to have a long-press open a context menu.

STEPS TO REPRODUCE
1. Run, for example, KClock in a desktop OS
2. Navigate to Settings, About KDE
3. Long-press the primary mouse button on the Homepage link

OBSERVED RESULT
The context menu (containing Open Link, and Copy Link to Clipboard appears).

EXPECTED RESULT
No context menu to appear.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20260709
KDE Plasma Version: 6.7.2
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.1.3-1-default (64-bit)

ADDITIONAL INFORMATION
Right-click works on FormLinkDelegates and is sufficient.

The fix is something like:

    onPressAndHold: {
        if (Kirigami.Settings.isMobile) {
            const menuItem = menu.createObject(root);
            menuItem.popup();
        }

which I have tested locally on a desktop and works as expected (I have not
tested on mobile), but I wanted to check if this is an acceptable idea first
before submitting an MR.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to