Bug 422167 - KTouch doesn't recognize Neo keyboard layout
Summary: KTouch doesn't recognize Neo keyboard layout
Status: REPORTED
Alias: None
Product: ktouch
Classification: Applications
Component: general (show other bugs)
Version: 20.04
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Gottfried
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-28 10:46 UTC by Martin Brodbeck
Modified: 2020-06-01 11:40 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 Martin Brodbeck 2020-05-28 10:46:47 UTC
SUMMARY

KTouch doesn't recognize Neo keyboard layout ("German (Neo 2)"). When I switch to neo layout, start ktouch and select the "Deutsches Neo 2" course, it tells me: "The selected course is not intended for your computer's active keyboard intput". I then can't do the unit - it doesn't recognize the keys.

STEPS TO REPRODUCE
1. Start ktouch
2. Switch to neo keybord layout
3. Try to do a neo unit

OBSERVED RESULT
It's not possible to type in the correct keys.

EXPECTED RESULT
KTouch should detect the correct keyboard layout and get the correct keys pressed.

SOFTWARE/OS VERSIONS
Linux: Arch
Gnome Version:  3.36.2 (Wayland)
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
When I start ktouch from gnome-terminal it tells me "Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome.". Starting ktouch with QT_QPA_PLATFORM=wayland, it only shows me a white window.
Comment 1 Sebastian Gottfried 2020-05-30 07:30:00 UTC
My developer machine is still on X11, so I never tried to run KTouch on Wayland so far. I still don't think this actually a KTouch bug. KTouch only uses standard text input for its training mode.At no point it tries to map key codes to a concrete keyboard layout to produce text. This left to Linux input stack just like almost every other application. 

What happens if you input text in any of the text fields of KTouch? (Try creating a new profile, enter a name). The NEO layout has to be active here as well or training with it can't work. My guess is that KTouch is still running with your original keyboard layout. You have to use the system control panel to setup the correct keyboard layout first.
Comment 2 Martin Brodbeck 2020-05-31 16:01:49 UTC
After creating a new profile I indeed can input my name in the desired keyboard layout. But after that, I cannot perform a lesson because of the mentioned warning message...
Comment 3 Chris Lane 2020-06-01 11:40:09 UTC
Hi Martin, I've found (mentioned in https://bugs.kde.org/show_bug.cgi?id=422088) that KTouch runs best with `QT_QPA_PLATFORM=xcb` at the moment.