diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 1f79b5117..92c9bc378 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -71,6 +71,8 @@ static void AddExtraModulePaths() obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str()); } +static QList DeleteKeys; + OBSBasic::OBSBasic(QWidget *parent) : OBSMainWindow (parent), ui (new Ui::OBSBasic) @@ -110,6 +112,12 @@ OBSBasic::OBSBasic(QWidget *parent) ui->statusbar, SLOT(UpdateCPUUsage())); cpuUsageTimer->start(3000); + DeleteKeys = +#ifdef __APPLE__ + QList{{Qt::Key_Backspace}} << +#endif + QKeySequence::keyBindings(QKeySequence::Delete); + #ifdef __APPLE__ QList keys; keys.append(QKeySequence::Delete); @@ -1707,7 +1715,7 @@ void OBSBasic::on_sources_customContextMenuRequested(const QPoint &pos) SLOT(EditSceneItemName())); popup.addAction(QTStr("Remove"), this, SLOT(on_actionRemoveSource_triggered()), - QKeySequence::Delete); + DeleteKeys.front()); popup.addSeparator(); popup.addMenu(ui->orderMenu); popup.addMenu(ui->transformMenu);