Commit 2c68edd5 authored by Craig Watson's avatar Craig Watson

Fix delete key not working as shortcut in Document view

parent 4e1a02c4
...@@ -361,6 +361,8 @@ void UBDocumentController::setupViews() ...@@ -361,6 +361,8 @@ void UBDocumentController::setupViews()
#ifdef Q_OS_OSX #ifdef Q_OS_OSX
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace)); mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace));
#else
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Delete));
#endif #endif
connect(mMainWindow->actionDelete, SIGNAL(triggered()), this, SLOT(deleteSelectedItem())); connect(mMainWindow->actionDelete, SIGNAL(triggered()), this, SLOT(deleteSelectedItem()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment