From dd2c75a495c451ca27ed8a3ac1c670509bad7fdc Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 15 Oct 2015 13:59:29 -0400 Subject: Clean up the copy/cut/paste/delete keyboard shortcuts. Now the shortcuts are registered in the main window, and it passes the signal to the currently-active browser for evaluation/action. This allows the shortcuts to work no matter what window/widget is currently active. --- lumina-fm/MainUI.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lumina-fm/MainUI.h') diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h index 588e2f15..e9a2aff8 100644 --- a/lumina-fm/MainUI.h +++ b/lumina-fm/MainUI.h @@ -89,6 +89,7 @@ private: QSettings *settings; QShortcut *nextTabLShort, *nextTabRShort, *closeTabShort, *refreshShort; + QShortcut *copyFilesShort, *cutFilesShort, *pasteFilesShort, *deleteFilesShort; QCompleter *dirCompleter; //Simplification Functions @@ -132,6 +133,12 @@ private slots: void prevTab(); //For keyboard shortcuts void refreshTabs(); //For keyboard shortcut + //Special Keyboard shortcut interactions + void CopyFilesTriggered(); + void CutFilesTriggered(); + void PasteFilesTriggered(); + void DeleteFilesTriggered(); + //Backend Info passing void DirDataAvailable(QString, QString, LFileInfoList); void SnapshotDataAvailable(QString, QString, QStringList); -- cgit