From 9e3deb68de52dfc9e0d49262b928294fd059c1fe Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 18 Feb 2012 20:05:53 +0200 Subject: [PATCH] Add Cmd+Delete shortcut to delete a torrent (Mac OS X) --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 37fbe9ba8..26e263f40 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -543,7 +543,11 @@ void MainWindow::createKeyboardShortcuts() { connect(switchRSSShortcut, SIGNAL(activated()), this, SLOT(displayRSSTab())); actionDocumentation->setShortcut(QKeySequence("F1")); actionOptions->setShortcut(QKeySequence(QString::fromUtf8("Alt+O"))); +#ifdef Q_WS_MAC + actionDelete->setShortcut(QKeySequence("Ctrl+Backspace")); +#else actionDelete->setShortcut(QKeySequence(QString::fromUtf8("Del"))); +#endif actionStart->setShortcut(QKeySequence(QString::fromUtf8("Ctrl+S"))); actionStart_All->setShortcut(QKeySequence(QString::fromUtf8("Ctrl+Shift+S"))); actionPause->setShortcut(QKeySequence(QString::fromUtf8("Ctrl+P")));