Comments (15)
I've asked a question on stack-overflow to see if there is a proper way to do it here: https://stackoverflow.com/questions/69337117/linux-x11-getting-international-keyboard-key-from-scancode
from userspace-tablet-driver-gui.
Ok, definitely doesn't seem like we've missed anything obvious then since i run Ubuntu 20 on my development desktop.
I'll be out on holiday from tomorrow until the 6th of October so I won't really be able to troubleshoot much during the period. However when I get back I'll source a French keyboard and work on fixing the mapping issues.
from userspace-tablet-driver-gui.
Great call out. Currently I am assuming the raw scan code to qwerty map like it is done in the kernel: https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h#L91-L96
NativeKeyEvent.keyChar() translates the pressed keys to the actual layout keys but that only works during entry. When the configuration is loading, we aren't able to use the NativeKeyEvent functions to get the native unicode characters.
Likely need to work out how to query the keys from X11 and use the mapping directly there instead.
from userspace-tablet-driver-gui.
Could you pull in commit 8678e5d and see if that fixes the layout mapping for you?
from userspace-tablet-driver-gui.
I made the PRs, unfortunately the new commit does not seem to solve the problem: the keys still register as QWERTY entries... did it work on your JIS keyboard?
from userspace-tablet-driver-gui.
Yeah on my JIS keyboard the keys like "@" show up correctly.
I may get a French keyboard to test with moving forward as having the shortcut keys localized is a good thing.
from userspace-tablet-driver-gui.
OK, weird... is there a chance I need to rebuild from scratch or remove some previous files for it to work? Everything else worked even though I just reran build as I fixed previous issues so I did not try that...
But if you know French people who can lend you a keyboard I guess that's good too ^^
from userspace-tablet-driver-gui.
Oh that's weird, are the keys all working now?
Every time I've made a change to the code it immediately picks up the changes.
from userspace-tablet-driver-gui.
No sorry, I meant "I did not do that, could it be the problem?"
But I also don't think so, other changes were immediately picked up... or maybe are there other dependencies that the code introduced and that I may be missing?
from userspace-tablet-driver-gui.
I don't think you've missed anything here. Which Linux distribution do you use?
from userspace-tablet-driver-gui.
It's on my wife's computer which is a Pop!OS 21.04 so Ubuntu-based
from userspace-tablet-driver-gui.
I have ordered a French keyboard. I will hopefully receive it this week and get time to look into the mapping.
from userspace-tablet-driver-gui.
French keyboard arrived today. Commit b5c9d3e should have fixed the layout for AZERTY keyboards.
It is not 100% fixed as if you are like me and have two non-us keyboards that you can switch between (In my case, JP and now FR) then I can't reliably check what is the currently active layout.
from userspace-tablet-driver-gui.
Just checked and it works perfectly, thanks :)
As far as I'm concerned I think current keyboard support is good enough (what you mention really feels like an edge case) so feel free to close this issue
from userspace-tablet-driver-gui.
Alright, thanks for confirming!
from userspace-tablet-driver-gui.
Related Issues (12)
- Installation Guide Needed. HOT 2
- Task :run FAILED (rc 134) on Fedora 35, KDE, x11 HOT 10
- Both rollers not supported for XP-Pen Artist Pro 16 HOT 2
- Error: "FAILURE: Build failed with an exception." HOT 3
- Can't run HOT 2
- Pen not detected -XP-Pen Artist 22E Pro HOT 31
- gui not working with i3 window manager HOT 3
- Add prebuilts HOT 1
- unable to build as can not retrive moduleplugin file from bintray HOT 4
- ./gradlew run failed HOT 3
- run failed HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userspace-tablet-driver-gui.