Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix - don't use control keys if alt key is also down (to fix Polish)

  • Loading branch information...
commit 086f592ebc648c93a7b45eb654d93e05202731ef 1 parent b405515
moodler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/editor/htmlarea.php
View
2  lib/editor/htmlarea.php
@@ -1464,7 +1464,7 @@ function (str, l1, l2, l3) {
HTMLArea.prototype._editorEvent = function(ev) {
var editor = this;
var keyEvent = (HTMLArea.is_ie && ev.type == "keydown") || (ev.type == "keypress");
- if (keyEvent && ev.ctrlKey) {
+ if (keyEvent && ev.ctrlKey && ! ev.altKey) {
var sel = null;
var range = null;
var key = String.fromCharCode(HTMLArea.is_ie ? ev.keyCode : ev.charCode).toLowerCase();
Please sign in to comment.
Something went wrong with that request. Please try again.