UI: Disable hotkeys when a user is expected to type text
Disable hotkeys when a user starts an interaction with the UI where they are expected to type text and re-enable hotkeys when the interaction is completed.
This commit is contained in:
parent
ee30a83a6f
commit
f832d14220
7 changed files with 24 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
|
|||
} else {
|
||||
preview->hide();
|
||||
}
|
||||
|
||||
App()->DisableHotkeys();
|
||||
}
|
||||
|
||||
OBSBasicProperties::~OBSBasicProperties()
|
||||
|
|
@ -224,6 +226,7 @@ OBSBasicProperties::~OBSBasicProperties()
|
|||
obs_source_dec_showing(source);
|
||||
main->SaveProject();
|
||||
main->UpdateContextBar();
|
||||
App()->UpdateHotkeyFocusSetting();
|
||||
}
|
||||
|
||||
void OBSBasicProperties::AddPreviewButton()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue