<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>427292</bug_id>
          
          <creation_ts>2020-10-03 13:37:47 +0000</creation_ts>
          <short_desc>Impossible to copy the labels of icons on desktop via context menu (&quot;ReferenceError: mouse is not defined&quot;)</short_desc>
          <delta_ts>2024-09-26 08:07:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Desktop icons &amp; Folder View widget</component>
          <version>5.27.80</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Silva">bugseforuns</reporter>
          <assigned_to name="Eike Hein">hein</assigned_to>
          <cc>justin</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-desktop/-/commit/b76365e19cd49215deaf26a1672ab1126524b33c</cf_commitlink>
          <cf_versionfixedin>6.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1962166</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-10-03 13:37:47 +0000</bug_when>
    <thetext>SUMMARY
Reproducible on both Arch (Plasma 5.20 beta) and neon unstable.

STEPS TO REPRODUCE
1. select an icon on desktop
2. press F2
3. right-click on the label of the selected icon

OBSERVED RESULT
nothing happens

EXPECTED RESULT
context menu opens and we can copy the right-clicked label

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962735</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-10-05 20:39:16 +0000</bug_when>
    <thetext>Huh, works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962980</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-10-06 20:40:20 +0000</bug_when>
    <thetext>Tested again on neon unstable, X11 and Wayland sessions.
It&apos;s still reproducible, but not consistently. The context menu fails to open
in 90% of the times after the provided steps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2113644</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2022-03-26 21:17:54 +0000</bug_when>
    <thetext>This bug is still happening, but I can&apos;t reproduce consistently.
When the right-click fails, the Konsole prints this error:

file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Private/EditMenu_base.qml:167: ReferenceError: mouse is not defined

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2221532</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-04-09 20:35:40 +0000</bug_when>
    <thetext>The error message indicates that the problem unfortunately may be in Qt. Worth re-testing with Qt 6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2353078</commentid>
    <comment_count>5</comment_count>
    <who name="Justin Zobel">justin</who>
    <bug_when>2024-09-11 15:47:24 +0000</bug_when>
    <thetext>Now that Qt6 and Plasma 6 is out can we test this and check if it&apos;s still an issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2353089</commentid>
    <comment_count>6</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2024-09-11 16:17:46 +0000</bug_when>
    <thetext>The bug is still reproducible.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.8.0
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2353100</commentid>
    <comment_count>7</comment_count>
    <who name="Justin Zobel">justin</who>
    <bug_when>2024-09-11 17:07:17 +0000</bug_when>
    <thetext>Ah I now see what this is about, after pressing F2 to rename, you cannot right-click to copy the text of the filename.

The right click context menu that does come up is for the icon, not the &quot;text field&quot; that the rename happens in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359759</commentid>
    <comment_count>8</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-09-25 14:26:08 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2547</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2360013</commentid>
    <comment_count>9</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2024-09-26 07:43:50 +0000</bug_when>
    <thetext>Git commit 127230c02c7bba30ee1dde09f0c38a67c7755b79 by Akseli Lahtinen.
Committed on 26/09/2024 at 07:43.
Pushed by akselmo into branch &apos;master&apos;.

desktop/RenameEditor.qml: Use QQC2 TextArea to add context menu

Due to PlasmaComponents.TextArea not having a context menu, change
the textArea to QQC2 one. This adds a working context menu.
FIXED-IN: 6.2.0

M  +8    -1    containments/desktop/package/contents/ui/RenameEditor.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/127230c02c7bba30ee1dde09f0c38a67c7755b79</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2360024</commentid>
    <comment_count>10</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2024-09-26 08:07:02 +0000</bug_when>
    <thetext>Git commit b76365e19cd49215deaf26a1672ab1126524b33c by Akseli Lahtinen.
Committed on 26/09/2024 at 07:55.
Pushed by akselmo into branch &apos;Plasma/6.2&apos;.

desktop/RenameEditor.qml: Use QQC2 TextArea to add context menu

Due to PlasmaComponents.TextArea not having a context menu, change
the textArea to QQC2 one. This adds a working context menu.
FIXED-IN: 6.2.0


(cherry picked from commit 127230c02c7bba30ee1dde09f0c38a67c7755b79)

ae58f737 desktop/RenameEditor.qml: Use QQC2 TextArea to add context menu
11866266 Add comment
3d6d2f52 Turn off spellchecker

Co-authored-by: Akseli Lahtinen &lt;akselmo@akselmo.dev&gt;

M  +8    -1    containments/desktop/package/contents/ui/RenameEditor.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/b76365e19cd49215deaf26a1672ab1126524b33c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>