Menu

#2282 Keyboard shortcuts with English letters in the Tools menu do not work if a non-English keyboard layout is active on Windows and GTK

Bug
open-accepted
nobody
5
2021-09-20
2021-09-12
No

Keyboard shortcuts containing non-English letters don't work in SciTE, at least for me, but that's okay.

I have English and Russian keyboard layouts and a command in the Tools menu that is invoked by the keyboard shortcut Ctrl+Shift+Y.

On GTK with an active English layout, I press Ctrl+Shift+Y and the command is called. After changing the layout to Russian, the command is no longer called by keyboard shortcut. I return the layout to English and everything works again.

On Windows with an active English layout, I press Ctrl+Shift+Y and the command is called. After changing the layout to Russian, everything continues to work. But as soon as I switch to another tab and back with an active Russian layout, pressing Ctrl+Shift+Y leads to the appearance of some special EM character. Simply changing the layout to English does not help, I need to switch tabs additionally.

I tried to fix it. But I'm not sure if the solution is correct. When solving the problem, I relied on the statement described in the first paragraph.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2021-09-20
    • labels: --> scite, internationalization, russian
    • status: open --> open-accepted
     
  • Neil Hodgson

    Neil Hodgson - 2021-09-20

    For Win32, should there be a Russian ACCELERATORS resource in SciTERes.rc? There's a LANGUAGE option listed at https://docs.microsoft.com/en-us/windows/win32/menurc/accelerators-resource . Do Russian users expect to use Cyrillic or English accelerators?

    The common code from Widget.cxx and SciTEGTK.cxx should be hoisted into a shared function in Widget.cxx. Should the status returned from gdk_keymap_translate_keyboard_state be checked?

     

Log in to post a comment.

MongoDB Logo MongoDB