GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 395 forks source link

Problem with keyboard shortcuts - multilanguage #390

Closed deartify closed 7 years ago

deartify commented 7 years ago

Hello I have problem with keyboard shortcut. When I'm pressing right Alt+"z" which inserts polish sign "ż" it works as undo. How can I disable this shortcut?

Btw thx for this great tool

Update: I have found solution. Unicode 90 for me is "Z" and 89 is "Y". When i change this to 121 "y" and 122 "z" everything works. around 6445 in content-tools.js case 'windows': if (ev.keyCode === 121 && ev.ctrlKey) { redo = true; } if (ev.keyCode === 122 && ev.ctrlKey) { undo = true; }

anthonyjb commented 7 years ago

@deartify thanks for the update - I guess we should really make these key combos configurable so that they can be easily updated for different language requirements.