mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
This commit is contained in:
parent
d3e876368c
commit
7c07f531a3
1 changed files with 3 additions and 3 deletions
|
|
@ -33,10 +33,10 @@ export const canInput = (element: Element) => {
|
|||
};
|
||||
|
||||
export const setWebViewFocusable = () => {
|
||||
if (document.activeElement.tagName === "IFRAME") {
|
||||
if (window.JSAndroid && window.JSAndroid.setWebViewFocusable) {
|
||||
if ((window.JSAndroid || window.JSHarmony) && document.activeElement.tagName === "IFRAME") {
|
||||
if (window.JSAndroid?.setWebViewFocusable) {
|
||||
window.JSAndroid.setWebViewFocusable(true);
|
||||
} else if (window.JSHarmony && window.JSHarmony.setWebViewFocusable) {
|
||||
} else if (window.JSHarmony?.setWebViewFocusable) {
|
||||
window.JSHarmony.setWebViewFocusable(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue