Merge pull request #843 from SeerLite/quicktab-fix

Don't try to focus on result screen
This commit is contained in:
Jack 2021-01-14 21:39:32 +00:00 committed by GitHub
commit e8a3f2d6ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4686,11 +4686,16 @@ $(document).keydown(function (event) {
let modePopupVisible =
!$("#customTextPopupWrapper").hasClass("hidden") ||
!$("#customMode2PopupWrapper").hasClass("hidden");
if (pageTestActive && !commandLineVisible && !modePopupVisible) {
if (!wordsFocused && event.key !== "Enter") {
focusWords();
if (config.showOutOfFocusWarning) return;
}
if (
pageTestActive &&
!commandLineVisible &&
!modePopupVisible &&
!resultVisible &&
!wordsFocused &&
event.key !== "Enter"
) {
focusWords();
if (config.showOutOfFocusWarning) return;
}
//tab