Commit f7edf7c 1 parent b4d3cbc commit f7edf7c Copy full SHA for f7edf7c
File tree 2 files changed +20
-16
lines changed
2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -292,16 +292,18 @@ function in_meet_main(){
292
292
}
293
293
294
294
function openInFullScreen ( ) {
295
- if ( document . fullscreenElement ) {
296
- document . exitFullscreen ( ) ;
297
- }
298
- else {
299
- let element = [ ...document . querySelectorAll ( "video" ) ] . filter ( x => x . style . display != "none" ) [ 0 ] ;
300
- if ( element ) { element . requestFullscreen ( ) }
301
- }
295
+ if ( document . fullscreenElement ) {
296
+ document . exitFullscreen ( ) ;
302
297
}
298
+ else {
299
+ let element = [ ...document . querySelectorAll ( "video" ) ] . filter ( x => x . style . display != "none" ) [ 0 ] ;
300
+ if ( element ) { element . requestFullscreen ( ) }
301
+ }
302
+ }
303
303
function hotKeyFullscreenHandler ( e ) {
304
304
if ( e . keyCode == 70 ) {
305
- openInFullScreen ( )
305
+ if ( document . activeElement . tagName . toLowerCase ( ) !== "textarea" ) {
306
+ openInFullScreen ( )
307
+ }
306
308
}
307
309
}
Original file line number Diff line number Diff line change @@ -594,17 +594,19 @@ function in_meet_main(){
594
594
}
595
595
596
596
function openInFullScreen ( ) {
597
- if ( document . fullscreenElement ) {
598
- document . exitFullscreen ( ) ;
599
- }
600
- else {
601
- let element = [ ...document . querySelectorAll ( "video" ) ] . filter ( x => x . style . display != "none" ) [ 0 ] ;
602
- if ( element ) { element . requestFullscreen ( ) }
603
- }
597
+ if ( document . fullscreenElement ) {
598
+ document . exitFullscreen ( ) ;
604
599
}
600
+ else {
601
+ let element = [ ...document . querySelectorAll ( "video" ) ] . filter ( x => x . style . display != "none" ) [ 0 ] ;
602
+ if ( element ) { element . requestFullscreen ( ) }
603
+ }
604
+ }
605
605
function hotKeyFullscreenHandler ( e ) {
606
606
if ( e . keyCode == 70 ) {
607
- openInFullScreen ( )
607
+ if ( document . activeElement . tagName . toLowerCase ( ) !== "textarea" ) {
608
+ openInFullScreen ( )
609
+ }
608
610
}
609
611
}
610
612
You can’t perform that action at this time.
0 commit comments