FIX: Add right-click context menu to search entry#13472
FIX: Add right-click context menu to search entry#13472carsteneu wants to merge 2 commits intolinuxmint:masterfrom
Conversation
Enable copy/paste via right-click in the start menu search field by using CinnamonEntry.addContextMenu(). Previously only Ctrl+V worked for pasting. Fixes linuxmint#13416
|
This doesn't seem to work well for me. When I click paste, the applet just closes. And copy seems always greyed out even if there's text in the search entry. |
Fixes linuxmint#13416 The menu search field didn't support right-click copy/paste properly. Users could only paste with Ctrl+V keyboard shortcut. Changes: - Add CinnamonEntry.addContextMenu() to enable right-click context menu - Prevent context menu from grabbing modal focus (shouldGrab = false) - Close context menu when main menu closes - Extend _eventIsOnActiveMenu to treat context menu as part of active menu - Add manual hover effect using mouse position polling and CSS pseudo-class (required because MenuManager blocks normal hover events)
|
Thank you very much @fredcw for testing and the valuable feedback! I've updated the PR to fix the issues you reported: What's fixed: Clicking "Paste" no longer closes the menu - it now works as expected. I tested before, but I think I only checked that the context menu appeared, not the actual paste action. My apologies for that oversight! Technical details: Please test again when you have a chance - I really appreciate your help! |
|
This works well now. |
|
This seems a little complicated for what it does. It seems either |
Fixes #13416
The menu search field didn't support right-click copy/paste. Users could only paste with Ctrl+V keyboard shortcut.
Added CinnamonEntry.addContextMenu() to the search entry, enabling the standard right-click context menu with copy/paste/select all options.