mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 23:36:10 +01:00
This commit is contained in:
parent
ec29bc7071
commit
a1328a6b4d
1 changed files with 4 additions and 1 deletions
|
|
@ -208,9 +208,12 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
|
|||
if (event.isComposing) {
|
||||
return;
|
||||
}
|
||||
if (event.key === "Escape" ||
|
||||
if (event.key === "Escape" || event.key === "Tab" ||
|
||||
(event.key === "Enter" && !event.shiftKey && isNotCtrl(event))) {
|
||||
updateCellValue(protyle, type, cellElements);
|
||||
if (event.key === "Tab") {
|
||||
protyle.wysiwyg.element.dispatchEvent(new KeyboardEvent("keydown", {key: "Tab", keyCode: 9}))
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue