After toggling fullscreen, focus on main container
This commit is contained in:
parent
7fc04b353b
commit
3ac08a8c0d
|
@ -666,7 +666,6 @@ function init(filename) {
|
||||||
//reloadImages is a slow process when multiple images are involved. Only used when rotating/mirroring
|
//reloadImages is a slow process when multiple images are involved. Only used when rotating/mirroring
|
||||||
reloadImages();
|
reloadImages();
|
||||||
} else if(this.name === "direction") {
|
} else if(this.name === "direction") {
|
||||||
// Skips updatePage and updateScale so that the current image doesn't scroll up
|
|
||||||
return updateProgress();
|
return updateProgress();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -689,6 +688,8 @@ function init(filename) {
|
||||||
if (typeof screenfull !== "undefined") {
|
if (typeof screenfull !== "undefined") {
|
||||||
$("#fullscreen").click(function() {
|
$("#fullscreen").click(function() {
|
||||||
screenfull.toggle($("#container")[0]);
|
screenfull.toggle($("#container")[0]);
|
||||||
|
// Focus so you can use up/down keys immediately after fullscreen
|
||||||
|
$("#mainContent").focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (screenfull.raw) {
|
if (screenfull.raw) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user