qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.49k stars 2.99k forks source link

Keyboard Shortcuts - Difficulties with Ctrl + Alt (+Shift) #44104

Open Intuos5 opened 3 years ago

Intuos5 commented 3 years ago

Describe the bug QGIS has difficulties with keyboardshortcuts that contain Ctrl + Alt combinations, on keyboard layouts that produce special characters.

How to Reproduce

  1. Set the keyboard layout to English (UK) International
  2. Assign any function (e.g. the options window) to Ctrl + Shift + Alt + P, you will see that the shortcut pane now lists Ctrl + Shift + Alt + Ö, which means that the input is not registered correctly. To compare, follow the procedure in the English (US) International keyboard layout and you will see it functions as expected.

Presumable underlying issue Therefore, since this input cannot be reproduced (i.e. the special character requires the modifier keys, while the shortcut requires the special character and modifier keys) the input cannot be used for a keyboard shortcut. Ideally, QGIS would register the key that is pressed rather than the special character to resolve the issue.

QGIS and OS versions This pertains to QGIS 3.16.7 on Windows 10.

gioman commented 3 years ago

No description provided.

@Intuos5 can you add it?

Intuos5 commented 3 years ago

I see, there was some stray text which hid the whole ting.

Pedro-Murteira commented 2 years ago

@Intuos5 I tried to replicate this but I couldn't. Are you still having this issue?

Intuos5 commented 2 years ago

@Pedro-Murteira The issue still persists, I am on Qgis 3.16.9, Windows 10. The my keyboard is a UK layout, Uk language with US international layout.

https://user-images.githubusercontent.com/63149655/147239320-eb7bbb5b-e8ae-467d-9737-bb67204b60f7.mp4

To replicate

  1. Set Ctrl+Alt+U to activate the About window.
  2. Notice this sets the key combination Ctrl+Alt+ú
  3. Try the keyboard shortcut > it does not activate the about window

Expected result To show that this is not a conflict, shift+F11 does activate the About window as expected.

Pedro-Murteira commented 2 years ago

@Intuos5 I followed those steps and could replicate it this time. Confirmed that it is still an issue. (QGIS 3.22.2 and 3.16.15).