diff --git a/mapeditor/mainwindow.cpp b/mapeditor/mainwindow.cpp index 49f849415..bb05305a3 100644 --- a/mapeditor/mainwindow.cpp +++ b/mapeditor/mainwindow.cpp @@ -156,6 +156,8 @@ MainWindow::MainWindow(QWidget* parent) : QDir::addSearchPath("icons", pathToQString(string / "mapeditor" / "icons")); QDir::addSearchPath("icons", pathToQString(VCMIDirs::get().userDataPath() / "mapeditor" / "icons")); + new QShortcut(QKeySequence("Backspace"), this, SLOT(on_actionErase_triggered())); + ExtractionOptions extractionOptions; parseCommandLine(extractionOptions); diff --git a/mapeditor/mainwindow.ui b/mapeditor/mainwindow.ui index 8b1989bac..e760aed36 100644 --- a/mapeditor/mainwindow.ui +++ b/mapeditor/mainwindow.ui @@ -1096,7 +1096,7 @@ Erase - Backspace, Del + Del