This commit is contained in:
Vanessa 2023-07-02 09:21:55 +08:00
parent 0c9f588ada
commit 22ffc30245
3 changed files with 8 additions and 3 deletions

View file

@ -3,6 +3,7 @@ import {genUUID} from "../util/genID";
import {moveResize} from "./moveResize";
/// #endif
import {isMobile} from "../util/functions";
import {isCtrl} from "../protyle/util/compatibility";
export class Dialog {
private destroyCallback: (options?: IObject) => void;
@ -92,7 +93,7 @@ export class Dialog {
event.stopPropagation();
return;
}
if (event.key === "Enter" && enterEvent) {
if (!event.shiftKey && !isCtrl(event) && event.key === "Enter" && enterEvent) {
enterEvent();
event.preventDefault();
}