This commit is contained in:
Vanessa 2023-11-12 12:28:20 +08:00
parent 2c71478d83
commit 4f263b31cc
19 changed files with 110 additions and 88 deletions

View file

@ -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 {