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:
Ryan Foster 2021-04-15 02:01:05 -04:00 • committed by Jim
commit f832d14220
7 changed files with 24 additions and 0 deletions

View file

@ -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()