fix: typing _+ in wysiwyg not working (#4681)

This commit is contained in:
David Luzar 2022-01-31 14:29:42 +01:00 committed by GitHub
parent 4b5270ab12
commit 631a228ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,11 +291,11 @@ export const textWysiwyg = ({
editable.onkeydown = (event) => {
event.stopPropagation();
if (actionZoomIn.keyTest(event)) {
if (!event.shiftKey && actionZoomIn.keyTest(event)) {
event.preventDefault();
app.actionManager.executeAction(actionZoomIn);
updateWysiwygStyle();
} else if (actionZoomOut.keyTest(event)) {
} else if (!event.shiftKey && actionZoomOut.keyTest(event)) {
event.preventDefault();
app.actionManager.executeAction(actionZoomOut);
updateWysiwygStyle();