Keyboard shortcuts only use the first defined keyboard layout
<!-- See our full bug reporting guidelines at https://inkscape.org/contribute/report-bugs/ Writing a good bug report will ensure we'll be able to help efficiently. 🙂 --> #### Summary: <!-- Summarize the issue/suggestion concisely: --> When having multiple Keyboard layout defined, Inkscape will properly use the active one for typing text but will refer to the first defined one for shortcuts. #### Steps to reproduce: <!-- Describe what you did (step-by-step) so we can reproduce: --> - in Linux Mint, go to Keyboard Settings, select the "Layouts" Tab - add the French Layout, move it on top so that you have: - French - English(US) - Make sure you select "English(US)" (US flag on the bottom right of your desktop) - open Inkscape - create a text object, type "qwerty" (it prints ok) - press <kbd>ctrl</kbd><kbd>z</kbd> #### What happened? Inkscape tried to close, as if you pressed ctrl-w. meanwhile, pressing ctrl-w will undo. (z & w are swapped on a french keyboard) #### What should have happened? Inkscape should have received the proper key from the currently active layout (us) instead of the first one (fr) Sample attachments: <!-- Attach the sample file(s) highlighting the issue, if appropriate. --> #### Version Info: ``` - Inkscape Version: 1.0 (1.0+r73+1) - Operating System: Linux Mint - Operating System version: 19.3 Cinnamon ``` <!-- ❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️ Please be patient while we try to find the time to look into your issue. Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports. --> <!-- Please be careful when/after writing # for example in logs, code, or versions of linux - use inline code span - single backticks (`) before and after it, like this - `#1618` - use multi-line code block - triple backticks (```) to fence/enclose console logs - attach long logs as a text file. -->
issue