1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-25 02:57:22 +00:00

After toggling fullscreen, focus on main container

This commit is contained in:
GarcaMan 2021-12-02 18:20:14 +00:00
parent 7fc04b353b
commit 3ac08a8c0d

View File

@ -666,7 +666,6 @@ function init(filename) {
//reloadImages is a slow process when multiple images are involved. Only used when rotating/mirroring
reloadImages();
} else if(this.name === "direction") {
// Skips updatePage and updateScale so that the current image doesn't scroll up
return updateProgress();
}
@ -689,6 +688,8 @@ function init(filename) {
if (typeof screenfull !== "undefined") {
$("#fullscreen").click(function() {
screenfull.toggle($("#container")[0]);
// Focus so you can use up/down keys immediately after fullscreen
$("#mainContent").focus();
});
if (screenfull.raw) {