Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard layout issue, "?" not working #4

Open
RasmusB opened this issue Nov 12, 2019 · 2 comments
Open

Keyboard layout issue, "?" not working #4

RasmusB opened this issue Nov 12, 2019 · 2 comments

Comments

@RasmusB
Copy link
Owner

RasmusB commented Nov 12, 2019

On the layout pictured below, pressing shift and period should result in a "?", but instead returns ">".

image

@RasmusB RasmusB changed the title Keyboard layout issue Keyboard layout issue, "?" not working Nov 12, 2019
@RasmusB RasmusB added the bug label Nov 12, 2019
@TomCarlson-NTAC
Copy link

This really isn't a bug, though. If I press shift and period, the firmware sends a shift and a period over USB. And on a PC keyboard, a shifted period is ">".

What I did in my copy is set up a bunch of arrays for each of the modifiers, shift/FN/Ctrl, one array for the mapped-to key to send, as well as another for the modifier.

Instead of sending the modifiers as normal scanned key-presses, sendKeys checks the modifiers separately and uses the appropriate mapping array values to send it.

This lets me do arbitrary mapping, to handle weirdness like this.

@RasmusB
Copy link
Owner Author

RasmusB commented May 27, 2020

@TomCarlson-NTAC
Yes, a "quirk" label would have been more appropriate :)

I have refrained from adding layout-specific code to the firmware as far as possible, but for some users (like yourself) it has been the only option. Mapping the backspace/del key properly is impossible under Windows for example.

I have thought about porting a more mature keyboard firmware to the board, such as QMK. That way, users would have access to mature tools to edit the keymap without having to write code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants