Is there any way I can assign a keyboard shortcut to a custom service menu I've added to Dolphin? The options menu for keyboard assignments does not seem to show any service menu actions, nor have I managed to find a a .desktop
entry key that would allow me to set a hotkey.
I know that GNOME's Nautilus uses a hidden accels file to allow users to set up custom key bindings. Does a similar option exist for Dolphin, perhaps?
By my knowledge
It is not possible to start a KDE Service Menu (context menu) with a keyboard shortcut. This is based on:
The Dolphin is using KDE Framework 5 KIO FileItemActions: https://api.kde.org/frameworks/kio/html/classKFileItemActions.html :
Dolphin source files:
Quote:
Sort of workaround with the Dolphin button shortcuts
The KDE Forums has a topic 'Play All Media Button for Dolphin': https://forum.kde.org/viewtopic.php?f=223&t=140139 . It shows how to patch the Dolphin sources to add extra buttons to the Dolphin toolbar. The Dolphin buttons can have the keyboard shortcut.
Wishes/patches
You could file a wish at the https://bugs.kde.org .
Patches and the review requests can be added to the KDE's instance of Phabricator: https://phabricator.kde.org/ .
I don't know what distro you use, but this is for Kubuntu (and works for other distros of course):
You can simulate right click with xdotool and map it to your custom shortcut (for me Shift-F10).
Here is how. First, install xdotool utility:
Then add a new shortcut in Custom Shortcuts. Set trigger to whatever (shortcut) you like (for ex. Shift-F10). Set action to:
(135 is keycode of "Menu-key")
Works for Dolphin 17.12.