mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix resource table shortcuts conflicting with OBS shortcuts
This could happen when adding the variable tab as a dock. The problem is visible in the OBS log: QAction::event: Ambiguous shortcut overload: Del
This commit is contained in:
parent
f706416df5
commit
bad1a548fb
|
|
@ -65,13 +65,16 @@ ResourceTable::ResourceTable(QWidget *parent, const QString &help,
|
|||
[openSettings]() { openSettings(); });
|
||||
|
||||
auto settingsShortcut = new QShortcut(QKeySequence("F2"), this);
|
||||
settingsShortcut->setContext(Qt::WidgetWithChildrenShortcut);
|
||||
QWidget::connect(settingsShortcut, &QShortcut::activated, this,
|
||||
openSettings);
|
||||
auto removeShortcut = new QShortcut(QKeySequence("Del"), this);
|
||||
removeShortcut->setContext(Qt::WidgetWithChildrenShortcut);
|
||||
QWidget::connect(removeShortcut, &QShortcut::activated, this,
|
||||
[this]() { Remove(); });
|
||||
|
||||
auto newShortcut = new QShortcut(QKeySequence("Ctrl+N"), this);
|
||||
newShortcut->setContext(Qt::WidgetWithChildrenShortcut);
|
||||
QWidget::connect(newShortcut, &QShortcut::activated, this,
|
||||
[this]() { Add(); });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user