/java-script/

Redactor WYSIWYG problem with alt+z

2012-12-14 00:06:15

Redactor is a great WYSIWYG but .... In some Windows, I checked on Windows XP Redactor have problem with alt+z (polish ż) For Redactor alt+z is the same as ctrl+z

What I can say....

problem is solved :)

if (e.ctrlKey && !e.altKey)
{
if (key == 90) this._shortcuts(e, 'undo'); // Ctrl + z
else if (key == 90 && e.shiftKey) this._shortcuts(e, 'redo');   // Ctrl + Shift + z
else if (key == 77) this._shortcuts(e, 'removeFormat'); // Ctrl + m
else if (key == 66) this._shortcuts(e, 'bold'); // Ctrl + b
else if (key == 73) this._shortcuts(e, 'italic'); // Ctrl + i
else if (key == 74) this._shortcuts(e, 'insertunorderedlist'); // Ctrl + j
else if (key == 75) this._shortcuts(e, 'insertorderedlist'); // Ctrl + k
else if (key == 76) this._shortcuts(e, 'superscript'); // Ctrl + l
}

You mast add in redactor.js that && !e.altKey