From db49ac4e1916f87143574b064b36ec86f8407145 Mon Sep 17 00:00:00 2001 From: Albert Mkhitaryan Date: Fri, 20 Feb 2026 08:48:54 +0000 Subject: Add keyboard shortcut support for service menu actions Introduce ServiceMenuShortcutManager, which registers all service menu actions with KActionCollection at startup allowing users to assign keyboard shortcuts in Configure Keyboard Shorcuts. Save/Load of configs happens via KXMLGUI in dolphinui.rc. Notes: - Manager initializes before setupGUI() for shortcut restoration - Execution and validation handled entirely by KFileItemAction in KIO. BUG: 260266 --- src/dolphinmainwindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index a03d566d0..cd9f238aa 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -49,6 +49,7 @@ class KToolBarPopupAction; class QToolButton; class PlacesPanel; class TerminalPanel; +class ServiceMenuShortcutManager; /** Used to identify that a custom command should be triggered on a view background double-click.*/ constexpr QLatin1String customCommand{"CUSTOM_COMMAND"}; @@ -801,6 +802,7 @@ private: QMenu m_searchTools; KConfigWatcher::Ptr m_serviceMenuConfigWatcher; KFileItemActions *m_fileItemActions = nullptr; + ServiceMenuShortcutManager *m_serviceMenuShortcutManager = nullptr; QTimer *m_sessionSaveTimer; QFutureWatcher *m_sessionSaveWatcher; -- cgit v1.3