Skip to content

Commit cfb7fe1

Browse files
committed
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.
1 parent 407944a commit cfb7fe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/widgets/OBSBasic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ OBSBasic::OBSBasic(QWidget *parent) : OBSMainWindow(parent), undo_s(ui), ui(new
471471
renameScene->setShortcut({Qt::Key_Return});
472472
renameSource->setShortcut({Qt::Key_Return});
473473

474-
ui->actionRemoveSource->setShortcuts({Qt::Key_Backspace});
475-
ui->actionRemoveScene->setShortcuts({Qt::Key_Backspace});
474+
ui->actionRemoveSource->setShortcuts({Qt::Key_Backspace, Qt::Key_Delete});
475+
ui->actionRemoveScene->setShortcuts({Qt::Key_Backspace, Qt::Key_Delete});
476476

477477
ui->actionCheckForUpdates->setMenuRole(QAction::AboutQtRole);
478478
ui->action_Settings->setMenuRole(QAction::PreferencesRole);

0 commit comments

Comments
 (0)