allow F in viewer to toggle fullscreen, rather than have to use Esc to exit fullscreen
This commit is contained in:
@@ -161,6 +161,8 @@ function ViewImageOrVideo()
|
||||
$('#figure').show()
|
||||
if( fullscreen )
|
||||
$('#canvas').get(0).requestFullscreen()
|
||||
else
|
||||
document.exitFullscreen()
|
||||
}
|
||||
if( objs[current].type == 'Video' )
|
||||
{
|
||||
@@ -173,5 +175,7 @@ function ViewImageOrVideo()
|
||||
$('#video_div').show()
|
||||
if( fullscreen )
|
||||
$('#video').get(0).requestFullscreen()
|
||||
else
|
||||
document.exitFullscreen()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user