mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 14:42:33 +01:00
This commit is contained in:
parent
4dce33436e
commit
d3e876368c
4 changed files with 21 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ import {openFileById} from "../../editor/util";
|
|||
import {checkFold} from "../../util/noRelyPCFunction";
|
||||
import {hideAllElements} from "../../protyle/ui/hideElements";
|
||||
import {dragOverScroll, stopScrollAnimation} from "./dragover";
|
||||
import {setWebViewFocusable} from "../../mobile/util/mobileAppUtil";
|
||||
|
||||
export const initWindowEvent = (app: App) => {
|
||||
document.body.addEventListener("mouseleave", () => {
|
||||
|
|
@ -125,6 +126,9 @@ export const initWindowEvent = (app: App) => {
|
|||
window.siyuan.ctrlIsPressed = false;
|
||||
window.siyuan.shiftIsPressed = false;
|
||||
window.siyuan.altIsPressed = false;
|
||||
/// #if BROWSER
|
||||
setWebViewFocusable();
|
||||
/// #endif
|
||||
});
|
||||
|
||||
window.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue