Shortcut display wrong symbol or are not detected in keymap with French Azerty keyboards #104787

Closed
opened 2023-02-15 18:36:57 +01:00 by Samuel Bernou · 9 comments
Member

System Information
Operating system: Linux-5.4.0-58-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.29.05

Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: rB55485cb379f7
Worked: (newest version of Blender that worked as expected)

Short description of error

Using French Azerty keyboard, setting keymap item shortcuts displays wrong symbols with some keys, sometimes with bad behaviors.

Some write the character that is supposed to be entered while pressing Shift (upper label of the key when it should be lower label).
Sometimes it just displays something plain wrong.

Having the wrong label is problematic when you search by key-binding to disable duplicates. Because you need to type the right symbol, that isn't related to the real key.

Detected Key labels are different on Linux and Windows

Here tested on a Windows 10:

azerty_fr-wrong_keys_windows_part1.png

azerty_fr-wrong_keys_windows_part2.png

Linux Mint (machine used for the bug report):
Note: On linux mint, some keys can't be assigned at all (show warning: Unsupported key: Unknown)

azerty_fr-wrong_keys_linux_mint_part1.png

azerty_fr-wrong_keys_linux_mint_part2.png

Exact steps for others to reproduce the error

Use an azerty keyboard with keyboard language set to French.
Try to enter key shortcut in keymap with special character (there are more than showed in screenshots)

**System Information** Operating system: Linux-5.4.0-58-generic-x86_64-with-glibc2.31 64 Bits Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.29.05 **Blender Version** Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: `rB55485cb379f7` Worked: (newest version of Blender that worked as expected) **Short description of error** Using French Azerty keyboard, setting keymap item shortcuts displays wrong symbols with some keys, sometimes with bad behaviors. Some write the character that is supposed to be entered while pressing Shift (upper label of the key when it should be lower label). Sometimes it just displays something plain wrong. Having the wrong label is problematic when you search by key-binding to disable duplicates. Because you need to type the right symbol, that isn't related to the real key. Detected Key labels are different on Linux and Windows Here tested on a Windows 10: ![azerty_fr-wrong_keys_windows_part1.png](/attachments/628e9c09-b80a-4eb4-a9ff-355a26b164ea) ![azerty_fr-wrong_keys_windows_part2.png](/attachments/6109564d-40d2-4dee-9546-d7f47b53c191) Linux Mint (machine used for the bug report): Note: On linux mint, some keys can't be assigned at all (show warning: `Unsupported key: Unknown`) ![azerty_fr-wrong_keys_linux_mint_part1.png](/attachments/9d0d3e19-9cfd-49dd-851a-e6d3791c119e) ![azerty_fr-wrong_keys_linux_mint_part2.png](/attachments/48c654a2-8176-4353-a94c-cf2de8165a8f) **Exact steps for others to reproduce the error** Use an azerty keyboard with keyboard language set to French. Try to enter key shortcut in keymap with special character (there are more than showed in screenshots)
Samuel Bernou added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-02-15 18:36:58 +01:00

From what I know, Blender assumes US keyboard layout for shortcuts. This is because you can work with different layouts and shortcuts will be in same physical position.

Issue with for example shortcht that calls pie menu is caused by 2 keyboard shortcuts assigned to same key. You need to disable or remove one you don't want to work. Please check if this resolves your issue.

From what I know, Blender assumes US keyboard layout for shortcuts. This is because you can work with different layouts and shortcuts will be in same physical position. Issue with for example shortcht that calls pie menu is caused by 2 keyboard shortcuts assigned to same key. You need to disable or remove one you don't want to work. Please check if this resolves your issue.
Richard Antalik added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-02-16 05:02:58 +01:00
Author
Member

Yes indeed, the dot key was just a conflicting keymap item.
Did not see that and thought the last created item would take precedence (wrongly).
So in the end they just have both the wrong label, also why it's easy to miss the duplication when you refer to key label.

As you just confirmed, I supposed everything was based on Qwerty US ANSI and just handling keycode the same way for every keyboard.

But I wondered if there would be a way to display the right label according to detected system keyboard language.

Still, the most problematic part is the keys that doesn't work at all on Linux.

Yes indeed, the dot key was just a conflicting keymap item. Did not see that and thought the last created item would take precedence (wrongly). So in the end they just have both the wrong label, also why it's easy to miss the duplication when you refer to key label. As you just confirmed, I supposed everything was based on Qwerty US ANSI and just handling keycode the same way for every keyboard. But I wondered if there would be a way to display the right label according to detected system keyboard language. Still, the most problematic part is the keys that doesn't work at all on Linux.

Still, the most problematic part is the keys that doesn't work at all on Linux.

Can you check if this keys work in text editor? This may be bit different issue and I would perhaps focus this report on that.

All other imperfections are valid points I would say, but these are rather requests for improvement, than actual bugs. For that I would recommend https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
This tracker is limited for bugs.

> Still, the most problematic part is the keys that doesn't work at all on Linux. Can you check if this keys work in text editor? This may be bit different issue and I would perhaps focus this report on that. All other imperfections are valid points I would say, but these are rather requests for improvement, than actual bugs. For that I would recommend https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests This tracker is limited for bugs.
Author
Member

The keys work as expected in Blender text editor.

The ISO key (bottom-left next to shift) write a < character normally.

The "special accent" key (near Enter) works as expected as well, but I don't know if the problem come from it being a "dead key", you press it one time, not writing anything, then press the character that will be inserted with the accent.

The keys work as expected in Blender text editor. The ISO key (bottom-left next to shift) write a `<` character normally. The "special accent" key (near Enter) works as expected as well, but I don't know if the problem come from it being a "dead key", you press it one time, not writing anything, then press the character that will be inserted with the accent.

The keys work as expected in Blender text editor.

The ISO key (bottom-left next to shift) write a < character normally.

The "special accent" key (near Enter) works as expected as well, but I don't know if the problem come from it being a "dead key", you press it one time, not writing anything, then press the character that will be inserted with the accent.

It could be, that it is not really sending any data. Can you check if that is the case when you run Blender with --debug-events argument? The output will be quite noisy, so I would recommend having mouse outside of Blender ready to copy stuff from console that possibly appears when you press the key.

> The keys work as expected in Blender text editor. > > The ISO key (bottom-left next to shift) write a `<` character normally. > > The "special accent" key (near Enter) works as expected as well, but I don't know if the problem come from it being a "dead key", you press it one time, not writing anything, then press the character that will be inserted with the accent. > It could be, that it is not really sending any data. Can you check if that is the case when you run Blender with `--debug-events` argument? The output will be quite noisy, so I would recommend having mouse outside of Blender ready to copy stuff from console that possibly appears when you press the key.
Author
Member

Hi, sorry for the delay.

Here is the debug-events console log, tested on 3.4.1 and 3.5

With < (ISO key, bottom-left next to shift).

wm_event_do_handlers: Handling event
wmEvent type:171/UNKNOWN, val:1/PRESS, prev_type:1/LEFTMOUSE, prev_val:2/RELEASE, modifier={}, keymodifier:0, flag:{}, mouse:(600,435), utf8:'<', pointer:0x7f2ff957afd8

wm_event_do_handlers: Handling event
wmEvent type:171/UNKNOWN, val:2/RELEASE, prev_type:171/UNKNOWN, prev_val:1/PRESS, modifier={}, keymodifier:0, flag:{}, mouse:(600,435), utf8:'', pointer:0x7f2fb4c82658

With ^ (Special Diacritic "dead-key", near Enter)

wm_event_do_handlers: Handling event
wmEvent type:171/UNKNOWN, val:1/PRESS, prev_type:235/LEFT_BRACKET, prev_val:2/RELEASE, modifier={}, keymodifier:0, flag:{}, mouse:(1051,365), utf8:'^', pointer:0x7f2ff957acb8

wm_event_do_handlers: Handling event
wmEvent type:235/LEFT_BRACKET, val:2/RELEASE, prev_type:171/UNKNOWN, prev_val:1/PRESS, modifier={}, keymodifier:0, flag:{}, mouse:(1051,365), utf8:'', pointer:0x7f2fb4c4c4b8
Hi, sorry for the delay. Here is the debug-events console log, tested on 3.4.1 and 3.5 With `<` (ISO key, bottom-left next to shift). ``` wm_event_do_handlers: Handling event wmEvent type:171/UNKNOWN, val:1/PRESS, prev_type:1/LEFTMOUSE, prev_val:2/RELEASE, modifier={}, keymodifier:0, flag:{}, mouse:(600,435), utf8:'<', pointer:0x7f2ff957afd8 wm_event_do_handlers: Handling event wmEvent type:171/UNKNOWN, val:2/RELEASE, prev_type:171/UNKNOWN, prev_val:1/PRESS, modifier={}, keymodifier:0, flag:{}, mouse:(600,435), utf8:'', pointer:0x7f2fb4c82658 ``` With `^` (Special Diacritic "dead-key", near Enter) ``` wm_event_do_handlers: Handling event wmEvent type:171/UNKNOWN, val:1/PRESS, prev_type:235/LEFT_BRACKET, prev_val:2/RELEASE, modifier={}, keymodifier:0, flag:{}, mouse:(1051,365), utf8:'^', pointer:0x7f2ff957acb8 wm_event_do_handlers: Handling event wmEvent type:235/LEFT_BRACKET, val:2/RELEASE, prev_type:171/UNKNOWN, prev_val:1/PRESS, modifier={}, keymodifier:0, flag:{}, mouse:(1051,365), utf8:'', pointer:0x7f2fb4c4c4b8 ```
Thomas Dinges added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-05-12 14:55:41 +02:00
Member

Hi, I can confirm that some key characters are detected incorrectly with AZERTY layout.

Blender assumes US keyboard layout for shortcuts

I'm not sure about this. ZQSD are detected correctly.

Hi, I can confirm that some key characters are detected incorrectly with AZERTY layout. > Blender assumes US keyboard layout for shortcuts I'm not sure about this. ZQSD are detected correctly.
Pratik Borhade added
Module
User Interface
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-07-31 08:39:14 +02:00

I guess the main task is Support for binding additional keys #73196

How to handle non US keymaps?

@PratikPB2123 - If it is Latin alphabet then probably most of it will work, but for example in Russian (Cyrillic) layout not a single letter key is recognized.

There are dozens of reports on this subject for different OS and languages.
There is no support for non-English layout, no dead key handling, etc.

I guess the main task is **Support for binding additional keys** #73196 > How to handle non US keymaps? @PratikPB2123 - If it is Latin alphabet then probably most of it will work, but for example in Russian (Cyrillic) layout not a single letter key is recognized. There are dozens of reports on this subject for different OS and languages. There is no support for non-English layout, no dead key handling, etc.
Member

Thanks @jenkm . Indeed same as #73196
Will mark this as duplicate.

Thanks @jenkm . Indeed same as #73196 Will mark this as duplicate.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-08-01 07:22:10 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#104787
No description provided.