Closed danburzo closed 8 years ago
Anyways, the fix is in https://github.com/guardian/scribe/blob/a62186405271aa52c131ab8313a4f5f027096d6d/src/plugins/core/commands/undo.js#L22.
The line becomes:
if (! event.shiftKey && (event.metaKey || (event.ctrlKey && !event.altKey)) && event.keyCode === 90) {
(same should be done to redo.js
)
+1
Maybe it could/should be solved more systemically? There are many more IMEs that use AltGr (that Windows interprets as Ctrl + Alt), including UK IME...
@paperboyo I can't find any other references to event.ctrlKey
in the code which might preventDefault()
except the two in Undo/Redo, so I'm assuming all other AltGr combos should work by default.
Thanks, @danburzo!
In short,
Right Alt
+Z
on a Polish Pro keyboard layout will trigger an event with:which is caught by the undo manager.
This article from Medium Engineering goes into more details on why this happens.
I've forked Scribe and will be providing a Pull Request with the fix.Can't currently install Scribe tests because of this: https://github.com/guardian/scribe-test-harness/issues/26