Files
wekan/client/lib
Lauri Ojansivu e7e2bed80f Shift shortcuts run once: re-dispatch only keys typed on a non-Latin layout.
The #6750 browser spec failed on Shift+D: the due date editor opened and
closed again. client/lib/keyboard.js re-dispatches a key typed on a
non-Latin layout as its Latin key code, and decided "another language" by
comparing the key with the key code's lowercase letter - which also matched
every SHIFTED Latin key ('D' is not 'd'), symbols such as '!' and the
Shift key itself. So each Shift shortcut fired twice; for Shift+D the copy
clicked the same due date control again and closed the popup. The Shift+1-9
filters were affected the same way.

It now re-dispatches only a single non-ASCII character whose key code is a
Latin letter or digit, and copies the Shift, Ctrl, Alt and Meta state, so
Shift shortcuts keep working on non-Latin layouts too.
tests/keyboardNonLatinRedispatch.test.cjs runs the real handler: shifted
Latin keys, symbols and modifiers are not duplicated; Cyrillic letters map
with and without Shift; it fails on the previous code.

Thanks to mimZD and xet7 !
2026-10-08 09:23:19 +03:00
..
2026-01-28 12:55:22 +02:00
2020-05-24 12:46:39 +02:00
2026-09-06 18:35:33 +03:00
2025-10-21 15:19:19 +03:00
2020-05-24 12:46:39 +02:00