From: moodler Date: Sun, 30 Nov 2003 00:35:32 +0000 (+0000) Subject: Bugfix - don't use control keys if alt key is also down (to fix Polish) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=086f592ebc648c93a7b45eb654d93e05202731ef;p=moodle.git Bugfix - don't use control keys if alt key is also down (to fix Polish) --- diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index d59bc7fe27..27e88de41f 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -1464,7 +1464,7 @@ HTMLArea.prototype.execCommand = function(cmdID, UI, param) { 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();