Bug 475696

Summary: Enter/Return is broken in the clipboard widget
Product: [Plasma] plasmashell Reporter: Fushan Wen <qydwhotmail>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR Keywords: qt6, regression
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 6.0
Sentry Crash Report:

Description Fushan Wen 2023-10-16 13:40:12 UTC
It still uses the nonexistent get method.

        switch(event.key) {
            case Qt.Key_Enter:
            case Qt.Key_Return: {
                if (clipboardMenu.view.currentIndex >= 0) {
                    var uuid = clipboardMenu.model.get(clipboardMenu.view.currentIndex).UuidRole
                    if (uuid) {
                        clipboardSource.service(uuid, "select")
                        if (main.hideOnWindowDeactivate) {
                            main.expanded = false;
                        }
                    }
                }
                break;
            }
Comment 1 Bug Janitor Service 2023-10-16 16:18:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3414
Comment 2 Fushan Wen 2023-10-18 17:31:30 UTC
Git commit fd5c0faee24aac222a71c061f3bb72482635e591 by Fushan Wen.
Committed on 18/10/2023 at 19:29.
Pushed by fusionfuture into branch 'master'.

applets/clipboard: move Enter/Return handler to item
FIXED-IN: 6.0

M  +2    -0    applets/clipboard/contents/ui/ClipboardItemDelegate.qml
M  +0    -13   applets/clipboard/contents/ui/ClipboardPage.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/fd5c0faee24aac222a71c061f3bb72482635e591
Comment 3 Fushan Wen 2023-10-19 01:02:18 UTC
Git commit 553d6f56c79dc6c135fa8ec8d557a4ae3a9dec0b by Fushan Wen.
Committed on 19/10/2023 at 02:51.
Pushed by fusionfuture into branch 'master'.

clipboardtest: consolidate fd5c0faee24aac222a71c061f3bb72482635e591

M  +1    -1    appiumtests/CMakeLists.txt
M  +71   -52   appiumtests/clipboardtest.py
M  +-    --    klipper/autotests/data/onetextentry.lst

https://invent.kde.org/plasma/plasma-workspace/-/commit/553d6f56c79dc6c135fa8ec8d557a4ae3a9dec0b