Merge branch 'master' into mtolmacs/fix/collision-reduce-allocations

This commit is contained in:
Márk Tolmács 2025-03-26 09:38:27 +01:00 committed by GitHub
commit 9ad7171917
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -18,6 +18,8 @@ import {
isTestEnv,
} from "../utils";
import { actionSaveToActiveFile } from "../actions";
import {
originalContainerCache,
updateOriginalContainerCache,
@ -392,6 +394,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) {