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) => { editable.onkeydown = (event) => {
event.stopPropagation(); event.stopPropagation();
if (actionZoomIn.keyTest(event)) { if (!event.shiftKey && actionZoomIn.keyTest(event)) {
event.preventDefault(); event.preventDefault();
app.actionManager.executeAction(actionZoomIn); app.actionManager.executeAction(actionZoomIn);
updateWysiwygStyle(); updateWysiwygStyle();
} else if (actionZoomOut.keyTest(event)) { } else if (!event.shiftKey && actionZoomOut.keyTest(event)) {
event.preventDefault(); event.preventDefault();
app.actionManager.executeAction(actionZoomOut); app.actionManager.executeAction(actionZoomOut);
updateWysiwygStyle(); updateWysiwygStyle();