This attempts to bring the accelerator string in line with how shortcuts work in the shell. See the main commit (the second one) for a more detailed explanation. Tests included.
A potential followup would be to convert Cyrillic letter keys to the corresponding US layout, which I believe is the preferred way to use shortcuts in Russian layouts. The shell side already handles this.
Fixes #1528 (closed)