frontend: Enable use of delete key on macOS

While it is canonical to use the backspace key as an alternative to the
dedicated "delete" key (which is omitted on many smaller-sized Apple
keyboards), the delete key is still available on full-size Apple
keyboards and obviously third-party keyboards.

This change adds the delete key as an alternative to the backspace key
to allow removal of scene items from the scene list in the UI.
This commit is contained in:
PatTheMav
2025-11-07 15:26:26 +01:00
committed by Ryan Foster
parent 085a51ab0f
commit 7f164619e8
+2 -2
View File
@@ -472,8 +472,8 @@ OBSBasic::OBSBasic(QWidget *parent) : OBSMainWindow(parent), undo_s(ui), ui(new
renameScene->setShortcut({Qt::Key_Return});
renameSource->setShortcut({Qt::Key_Return});
ui->actionRemoveSource->setShortcuts({Qt::Key_Backspace});
ui->actionRemoveScene->setShortcuts({Qt::Key_Backspace});
ui->actionRemoveSource->setShortcuts({Qt::Key_Backspace, Qt::Key_Delete});
ui->actionRemoveScene->setShortcuts({Qt::Key_Backspace, Qt::Key_Delete});
ui->actionCheckForUpdates->setMenuRole(QAction::AboutQtRole);
ui->action_Settings->setMenuRole(QAction::PreferencesRole);