GithubHelp home page GithubHelp logo

Comments (15)

kurikaesu avatar kurikaesu commented on June 12, 2024 1

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.

kurikaesu avatar kurikaesu commented on June 12, 2024 1

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.

kurikaesu avatar kurikaesu commented on June 12, 2024

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.

kurikaesu avatar kurikaesu commented on June 12, 2024

Could you pull in commit 8678e5d and see if that fixes the layout mapping for you?

from userspace-tablet-driver-gui.

Silmathoron avatar Silmathoron commented on June 12, 2024

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.

kurikaesu avatar kurikaesu commented on June 12, 2024

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.

Silmathoron avatar Silmathoron commented on June 12, 2024

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.

kurikaesu avatar kurikaesu commented on June 12, 2024

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.

Silmathoron avatar Silmathoron commented on June 12, 2024

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.

kurikaesu avatar kurikaesu commented on June 12, 2024

I don't think you've missed anything here. Which Linux distribution do you use?

from userspace-tablet-driver-gui.

Silmathoron avatar Silmathoron commented on June 12, 2024

It's on my wife's computer which is a Pop!OS 21.04 so Ubuntu-based

from userspace-tablet-driver-gui.

kurikaesu avatar kurikaesu commented on June 12, 2024

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.

kurikaesu avatar kurikaesu commented on June 12, 2024

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.

Silmathoron avatar Silmathoron commented on June 12, 2024

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.

kurikaesu avatar kurikaesu commented on June 12, 2024

Alright, thanks for confirming!

from userspace-tablet-driver-gui.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.