Bug 354893 - kate / kwrite CTRL menu hot keys ignore selected keyboard layout
Summary: kate / kwrite CTRL menu hot keys ignore selected keyboard layout
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-05 12:24 UTC by Chris
Modified: 2019-07-14 00:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2015-11-05 12:24:40 UTC
kate / kwrite menu control "hot keys" do not change when a different keyboard layout is selected.

For example, install English (US) and English (US) Dvorak.

As you toggle between the two layouts, the text input fields work as expected - select Dvorak, and you can type using Dvorak. Select standard English (US) and you can type using that layout.

But the CTRL menu keys, like CTRL-c, CTRL-v, CTRL-x, CTRL-s, etc. never change, retaining their original key mapping, which results in unexpected behavior.

Other applications, Firefox, GIMP, Chrome, for example, do not exhibit this behavior. Their menu "hot keys", reflect the currently selected keyboard layout.

Reproducible: Always

Steps to Reproduce:
1. From the KDE system settings, select "Input Devices"

2. Select "keyboard" in the left panel, then select the "Layouts" tab on the right panel

3. Check "Configure Layouts".

4. Click the "Add" button.

5. Select "English (US", variant "default"". Click the "OK" button. Do the same for "English (US), variant "Dvorak"". You should now see both layouts in the layouts panel.

6. Under "Layout Indicator", select "Show Layout Indicator" and "Show Label"

7. Under "Switching Policy" select "Global"

8. Click the "Apply" button and exit.

9. Start kate (or kwrite).

10. Type some text, toggling between keyboard layouts by clicking on the system tray keyboard layout select icon. Note that you can input text using the selected keyboard layout.

11. Try any of the Menu shortcut "hot keys", like CTRL-s (save), CTRL-f (find), again, toggling between keyboard layouts. Note that the keyboard layout being used for these control keys never changes.

NOTE: depending on the level of code / library sharing between KDE applications, this issue may affect other KDE applications. Konqueror, for example also seems to exhibit this behavior.


7. Under 

Actual Results:  
Text input correctly reflects currently selected keyboard layout, but Menu control shortcut "hot keys" do not change when keyboard layout is changed. 

Expected Results:  
When different keyboard layouts are selected, menu shortcut keys should reflect the currently selected layout.
Comment 1 Ahmad Samir 2019-06-24 11:10:14 UTC
I couldn't reproduce this issue, so it may have been fixed in Qt upstream. Closing. Feel free to reopen if you still experience this issue.
Comment 2 Chris 2019-07-14 00:04:01 UTC
Agreed - "K" apps I have tried now work correctly - CTL keys reflect the current selected keyboard layout - most likely upstream from kate / kwrite. Closed for me too - thanks.