linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
450 stars 73 forks source link

Keyboard layout mismatch #3353

Open eduardomozart opened 2 years ago

eduardomozart commented 2 years ago

SUMMARY | 问题概要

When I enable the "Portuguese (Brazil, native american keyboard)" and "Portuguese (Brazil)" and swap between the two using the DDE Control Center, it works just fine. But when I use the icon to swap the Keyboard layout from the Plugin Area (not the Virtual Keyboard), it simplies swap to another Keyboard Layout that I simply can't recognize.

Gravar_select-area_20220802204516

I recorded a small gif to demonstrate the possible bug. In the three examples, I'm continually pressing the same key (letter 'c'). Notice that I'm using the "Portuguese (Brazil, native american keyboard)" first. So I click on it, and start typing 'c' and it shows up 'c' at the textbox.

Second, I changed the keyboard layout to "Portuguese (Brazil)" and start pressing the same key again (letter 'c').

BUG: When I swap back to "Portuguese (Brazil, native american keyboard)" layout, when I press 'c', it starts to output the letter 'j'.

STEPS TO REPRODUCE | 复现步骤

  1. Open Deepin Control Center.
  2. Go to Keyboard and change between Keyboard layouts.

OBSERVED RESULT | 观察到的结果

The letter output do not reflect the key pressed and the keyboard layout.

EXPECTED RESULT | 期望的结果

Letter 'c' should be outputed when I swap between Keyboard layouts.

SOFTWARE/OS VERSIONS | 软件/系统版本信息

Distribution: Deepin 20.6. PC: HP ProBook 4430s (BR)

ADDITIONAL INFORMATION | 额外补充

Maybe the Xorg log helps to troubleshoot the issue.

Log do Xorg.txt

Please let me know if there's any more information needed.

tsic404 commented 2 years ago

Before next version(20.7) release, while fcitx is running, keyboard layout is useless.You need to set keyboard in fcitx or uninstall fcitx input method.