bloznelis / kbt

Keyboard tester in terminal
MIT License
311 stars 9 forks source link

Please add support for german keyboard 100% #29

Open Harveyhase68 opened 2 months ago

Harveyhase68 commented 2 months ago

Hey, thanks for your hard work! It's working fantastically, with just a few small issues:

The Enter key on the numeric keypad doesn’t work, the Print Screen key doesn’t respond, and yes, I know I disabled the Caps Lock in the registry, so that’s also not showing up…

Is there a way to intercept key presses before Windows does? Back in the day, there was a small area in lower memory where the keys would be buffers (0x041A, 0x041C, 0x041E - 0x044E). Is this the case in Windows too, maybe in Rust?! I know this isn't possible nowadays, did you use RegisterRawInputDevices or SetWindowsHookEx?

And is it possible to add a German keyboard layout? I can do some development in Rust, so maybe I can help with that somehow?

Yours, Alex

bloznelis commented 2 months ago

I'm glad you enjoy using this tool!


The Enter key on the numeric keypad doesn’t work, the Print Screen key doesn’t respond, and yes, I know I disabled the Caps Lock in the registry, so that’s also not showing up…

Need to investigate why, maybe there's a mapping bug.

Is there a way to intercept key presses before Windows does?

I hope not, that would be horribly unsafe, no? Not that it is too safe now..

And is it possible to add a German keyboard layout? I can do some development in Rust, so maybe I can help with that somehow?

It would be possible, but I don't think it belongs in the mainline version. We need to add support for custom layouts like mentioned here -> https://github.com/bloznelis/kbt/issues/22#issuecomment-1798129813. I don't have much time to add this, but if you want to try – feel free!