Bug 427292 - Impossible to copy the labels of icons on desktop via context menu ("ReferenceError: mouse is not defined")
Summary: Impossible to copy the labels of icons on desktop via context menu ("Referenc...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.27.80
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-03 13:37 UTC by Patrick Silva
Modified: 2024-09-26 08:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-10-03 13:37:47 UTC
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
Comment 1 Nate Graham 2020-10-05 20:39:16 UTC
Huh, works for me.
Comment 2 Patrick Silva 2020-10-06 20:40:20 UTC
Tested again on neon unstable, X11 and Wayland sessions.
It's still reproducible, but not consistently. The context menu fails to open
in 90% of the times after the provided steps.
Comment 3 Patrick Silva 2022-03-26 21:17:54 UTC
This bug is still happening, but I can'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
Comment 4 Nate Graham 2023-04-09 20:35:40 UTC
The error message indicates that the problem unfortunately may be in Qt. Worth re-testing with Qt 6.
Comment 5 Justin Zobel 2024-09-11 15:47:24 UTC
Now that Qt6 and Plasma 6 is out can we test this and check if it's still an issue?
Comment 6 Patrick Silva 2024-09-11 16:17:46 UTC
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
Comment 7 Justin Zobel 2024-09-11 17:07:17 UTC
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 "text field" that the rename happens in.
Comment 8 Bug Janitor Service 2024-09-25 14:26:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2547
Comment 9 Akseli Lahtinen 2024-09-26 07:43:50 UTC
Git commit 127230c02c7bba30ee1dde09f0c38a67c7755b79 by Akseli Lahtinen.
Committed on 26/09/2024 at 07:43.
Pushed by akselmo into branch 'master'.

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
Comment 10 Akseli Lahtinen 2024-09-26 08:07:02 UTC
Git commit b76365e19cd49215deaf26a1672ab1126524b33c by Akseli Lahtinen.
Committed on 26/09/2024 at 07:55.
Pushed by akselmo into branch 'Plasma/6.2'.

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 <akselmo@akselmo.dev>

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/b76365e19cd49215deaf26a1672ab1126524b33c