mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 12:08:07 +01:00
This commit is contained in:
parent
2c71478d83
commit
4f263b31cc
19 changed files with 110 additions and 88 deletions
|
|
@ -3,7 +3,7 @@ import {genUUID} from "../util/genID";
|
|||
import {moveResize} from "./moveResize";
|
||||
/// #endif
|
||||
import {isMobile} from "../util/functions";
|
||||
import {isCtrl} from "../protyle/util/compatibility";
|
||||
import {isNotCtrl} from "../protyle/util/compatibility";
|
||||
import {Protyle} from "../protyle";
|
||||
|
||||
export class Dialog {
|
||||
|
|
@ -104,7 +104,7 @@ export class Dialog {
|
|||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
if (!event.shiftKey && !isCtrl(event) && event.key === "Enter" && enterEvent) {
|
||||
if (!event.shiftKey && isNotCtrl(event) && event.key === "Enter" && enterEvent) {
|
||||
if (confirmElement) {
|
||||
confirmElement.dispatchEvent(new CustomEvent("click"));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue