Skip to content

Commit

Permalink
Merge branch 'master' into add-arabic-egy
Browse files Browse the repository at this point in the history
  • Loading branch information
byseif21 authored Mar 5, 2025
2 parents 7560ead + 25dada5 commit e71b2fc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/ts/commandline/commandline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,13 @@ function hide(clearModalChain = false): void {
clearModalChain,
afterAnimation: async () => {
addCommandlineBackground();
const isWordsFocused = $("#wordsInput").is(":focus");
if (ActivePage.get() === "test" && !isWordsFocused) {
focusWords();
if (ActivePage.get() === "test") {
const isWordsFocused = $("#wordsInput").is(":focus");
if (ActivePage.get() === "test" && !isWordsFocused) {
focusWords();
}
} else {
(document.activeElement as HTMLElement | undefined)?.blur();
}
isAnimating = false;
},
Expand Down

0 comments on commit e71b2fc

Please sign in to comment.