Commit a02b7b1c authored by Alexander Trofimov's avatar Alexander Trofimov Committed by GitHub

Merge pull request #100 from ONLYOFFICE/hotfix/v4.2.8

fix bug 33908
parents af8980a6 3669611c
...@@ -2513,7 +2513,6 @@ ...@@ -2513,7 +2513,6 @@
/** @param event {KeyboardEvent} */ /** @param event {KeyboardEvent} */
CellEditor.prototype._onWindowKeyPress = function (event) { CellEditor.prototype._onWindowKeyPress = function (event) {
var t = this; var t = this;
var ctrlKey = event.metaKey || event.ctrlKey;
if (!window['IS_NATIVE_EDITOR']) { if (!window['IS_NATIVE_EDITOR']) {
...@@ -2521,7 +2520,7 @@ ...@@ -2521,7 +2520,7 @@
return true; return true;
} }
if (t.skipKeyPress || event.which < 32 || event.altKey || ctrlKey) { if (t.skipKeyPress || event.which < 32) {
t.skipKeyPress = true; t.skipKeyPress = true;
return true; return true;
} }
......
...@@ -1032,10 +1032,7 @@ ...@@ -1032,10 +1032,7 @@
return result; return result;
default: default:
// При зажатом Ctrl или Alt не вводим символ t.skipKeyPress = false;
if (!ctrlKey && !event.altKey) {
t.skipKeyPress = false;
}
return true; return true;
} // end of switch } // end of switch
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment