Make it possible to remove items with the DEL key.

This commit is contained in:
LoRd_MuldeR 2012-04-19 00:56:04 +02:00
parent 80ef7e0563
commit 9481029960
2 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,7 @@
#define VER_LAMEXP_MINOR_LO 4
#define VER_LAMEXP_TYPE RC
#define VER_LAMEXP_PATCH 2
#define VER_LAMEXP_BUILD 982
#define VER_LAMEXP_BUILD 983
///////////////////////////////////////////////////////////////////////////////
// Tool versions (minimum expected versions!)

View File

@ -862,6 +862,15 @@ void MainWindow::keyPressEvent(QKeyEvent *e)
}
}
if(e->key() == Qt::Key_Delete)
{
if(sourceFileView->isVisible())
{
QTimer::singleShot(0, this, SLOT(removeFileButtonClicked()));
return;
}
}
QMainWindow::keyPressEvent(e);
}