Skip to content

Commit a1b75b2

Browse files
committed
StudentStats: исправление поиска при полноэкранном режиме
1 parent 89b84c6 commit a1b75b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwproj.front/src/components/Courses/StudentStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
6666

6767
useEffect(() => {
6868
const keyDownHandler = (event: KeyboardEvent) => {
69-
if (isFullscreen) return
69+
if (!!document.fullscreenElement) return
7070
if (event.ctrlKey || event.altKey) return
7171
if (searched && event.key === "Escape") {
7272
setSearched({searched: ""});

0 commit comments

Comments
 (0)