mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge branch 'master' into mrazator/separate-element-into-standalone-package
This commit is contained in:
commit
4c75c580b0
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,8 @@ import {
|
|||
isTestEnv,
|
||||
} from "@excalidraw/common";
|
||||
|
||||
import { actionSaveToActiveFile } from "../actions";
|
||||
|
||||
import {
|
||||
originalContainerCache,
|
||||
updateOriginalContainerCache,
|
||||
|
@ -397,6 +399,10 @@ export const textWysiwyg = ({
|
|||
event.preventDefault();
|
||||
submittedViaKeyboard = true;
|
||||
handleSubmit();
|
||||
} else if (actionSaveToActiveFile.keyTest(event)) {
|
||||
event.preventDefault();
|
||||
handleSubmit();
|
||||
app.actionManager.executeAction(actionSaveToActiveFile);
|
||||
} else if (event.key === KEYS.ENTER && event[KEYS.CTRL_OR_CMD]) {
|
||||
event.preventDefault();
|
||||
if (event.isComposing || event.keyCode === 229) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue