kglobalaccel: Attempt to register media shortcuts too

This commit is contained in:
Jonas Kvinge
2021-12-18 20:18:37 +01:00
parent 8b1d198efd
commit bbd81e7d9c
2 changed files with 17 additions and 15 deletions

View File

@@ -51,6 +51,7 @@ class GlobalShortcutsBackendKDE : public GlobalShortcutsBackend {
void DoUnregister() override;
private:
bool IsMediaShortcut(const GlobalShortcutsManager::Shortcut &shortcut) const;
bool RegisterShortcut(const GlobalShortcutsManager::Shortcut &shortcut);
static QStringList GetActionId(const QString &id, const QAction *action);
static QList<int> ToIntList(const QList<QKeySequence> &sequence_list);