We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3060630 commit 7964efcCopy full SHA for 7964efc
2 files changed
epub_browser/assets/chapter.js
@@ -1691,8 +1691,11 @@ function initScript() {
1691
`;
1692
document.head.appendChild(style);
1693
1694
- // 聚焦
1695
- content.focus();
+ // 页面加载完成后自动聚焦
+ window.addEventListener('load', () => {
1696
+ document.body.focus(); // 主动让页面body获得焦点
1697
+ });
1698
+
1699
};
1700
1701
window.initScriptChapter = initScript;
setup.py
@@ -6,7 +6,7 @@
6
7
setup(
8
name="epub-browser", # 在PyPI上显示的项目名称
9
- version="1.7.2", # 初始版本号
+ version="1.7.3", # 初始版本号
10
author="dfface", # 作者名
11
author_email="dfface@sina.com", # 作者邮箱
12
keywords="epub reader html export browser convert calibre-web calibre kindle web server local",
0 commit comments