Delete khotkeys
Closed, ResolvedPublic

Description

(more of a plasma task, but it relates to moving things away from kdelibs4support)

vkrause created this task.Sep 10 2019, 8:10 AM

Uses KShortcut, KUrl, KStandardDirs.

There are plans in plasma to drop this module.

Kglobalaccel gained ui and code to run arbitrary actions.
There's little left.

I would advise not porting this.

davidedmundson renamed this task from Port khotkeys away from kdelibs4support to Delete khotkeys.Nov 23 2019, 4:18 PM
davidedmundson updated the task description. (Show Details)
davidedmundson moved this task from Backlog to Waiting on Other Tasks on the KF6 board.
alex edited projects, added Plasma 6; removed KF6.Aug 2 2021, 3:38 PM

https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/857 adds explicit support to KGlobalAccel for running any arbitrary command - even if the specified command does not have an existing desktop file. With that, it can completely replace the "command" and "K-Menu Entry" items from KHotkeys. The "DBus Command" item can be easily replicated as well, by using "qdbus" or "dbus-send" as application and specifying the right service/object/method as arguments.

This leaves the "send keyboard input" functionality that we do not currently have a replacement for. One question is if this is functionality that belongs in KGlobalAccel in the first place, or can be more easily replicated with other features. This also goes for the triggers, there are three types in KHotkeys: Global Shortcut, Mouse Gesture or Window. "Window" triggers in my opinion should be handled either by KWin scripts or KWin Window Rules. It is fairly questionable functionality in the first place. Global Shortcut triggers are handled by KGlobalAccel. This leaves mouse gestures, which probably should be its own thing somewhere.

ngraham closed this task as Resolved.Jul 31 2023, 2:30 PM
ngraham claimed this task.
ngraham added a subscriber: ngraham.

This is done now.