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 !