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:
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();
|
||||
} 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user