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

@-symbol not mapped with logical keyboard #226

Open
egrath opened this issue Apr 3, 2024 · 6 comments
Open

@-symbol not mapped with logical keyboard #226

egrath opened this issue Apr 3, 2024 · 6 comments

Comments

@egrath
Copy link
Contributor

egrath commented Apr 3, 2024

Problem:
When using the logical keyboard with a german keyboard layout, the @-symbol is not mapped. Other keys which use Alt-Graph combinations like [,],{,},\ and ~ work like expected.

Desired result:
@-symbol is mapped correctly with german keyboard.

How to reproduce:
Set your keyboard to german layout, run b-em and set the keyboard mapping to logical. Press Alt-Graph+Q to produce the @-symbol. Just a Q is shown.

@SteveFosdick
Copy link
Collaborator

Sorry it has taken so long to see this. Is this on Linux, Windows or something else?

@egrath
Copy link
Contributor Author

egrath commented Jan 23, 2025

Hi, it's on Linux and Windows alike.

@SteveFosdick
Copy link
Collaborator

I think I have an idea what is going in here. First, here is the link to the original implementation of logical keyboard mode: #78

What ZornsLemma ended up implementing is, I think, a hybrid between a logical and physical keyboard mapping, i.e. it assumes that the letter keys are fixed positions and therefore can be handled via the physical translation, while the punctuation and function keys need the logical mapping. As the '@' symbol is on the 'Q" key on the German keyboard this doesn't work. It probably affects other non-English keyboard too.

I will experiment to find a solution.

@SteveFosdick
Copy link
Collaborator

I was able to reproduce the problem.

See commit https://github.com/stardot/b-em/commits/sf/issue226/ and try setting the keyboard mode to "Logical". The previous mode is renamed hybrid mode.

@SteveFosdick
Copy link
Collaborator

Oops, the previous link was a branch. The commit is 9dc9ac3.

@egrath
Copy link
Contributor Author

egrath commented Jan 24, 2025

Steve, thank you so much. Just tried branch sf/issue226 on my main Linux box and it works like a charm with german keyboard layout (Alt-Graph combinations like @, [, ], {, }, , ...).

Will conduct further tests on my Windows machine as soon as I have access to it again.

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

No branches or pull requests

2 participants