mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 05:44:43 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user