mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 03:40:15 +01:00
This commit is contained in:
parent
0c9f588ada
commit
22ffc30245
3 changed files with 8 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue