mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-16 22:10:48 +02:00
make text committing cross-platform (#1188)
This commit is contained in:
@@ -109,7 +109,7 @@ export function textWysiwyg({
|
||||
ev.preventDefault();
|
||||
handleSubmit();
|
||||
}
|
||||
if (ev.key === KEYS.ENTER && (ev.shiftKey || ev.metaKey)) {
|
||||
if (ev.key === KEYS.ENTER && (ev.shiftKey || ev[KEYS.CTRL_OR_CMD])) {
|
||||
ev.preventDefault();
|
||||
if (ev.isComposing || ev.keyCode === 229) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user