mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-07 16:04:19 +01:00
📱 编辑数据库单元格
This commit is contained in:
parent
9fd1bf7b96
commit
28f1bc782b
1 changed files with 10 additions and 2 deletions
|
|
@ -609,9 +609,13 @@ export const initKeyboardToolbar = () => {
|
|||
const range = getSelection().getRangeAt(0);
|
||||
if (type === "done") {
|
||||
if (toolbarElement.clientHeight > 100) {
|
||||
if (isInHarmony() || isInAndroid()) {
|
||||
setTimeout(() => focusByRange(range), Constants.TIMEOUT_TRANSITION);
|
||||
} else {
|
||||
focusByRange(range);
|
||||
}
|
||||
hideKeyboardToolbarUtil();
|
||||
callMobileAppShowKeyboard();
|
||||
setTimeout(() => focusByRange(range), 256);
|
||||
} else {
|
||||
activeBlur();
|
||||
}
|
||||
|
|
@ -692,9 +696,13 @@ export const initKeyboardToolbar = () => {
|
|||
return;
|
||||
} else if (type === "add") {
|
||||
if (buttonElement.classList.contains("protyle-toolbar__item--current")) {
|
||||
if (isInHarmony() || isInAndroid()) {
|
||||
setTimeout(() => focusByRange(range), Constants.TIMEOUT_TRANSITION);
|
||||
} else {
|
||||
focusByRange(range);
|
||||
}
|
||||
hideKeyboardToolbarUtil();
|
||||
callMobileAppShowKeyboard();
|
||||
setTimeout(() => focusByRange(range), 256);
|
||||
} else {
|
||||
(document.activeElement as HTMLElement)?.blur();
|
||||
buttonElement.classList.add("protyle-toolbar__item--current");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue