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

Regional Keyboards #148

Merged
merged 4 commits into from
Jun 4, 2024
Merged

Regional Keyboards #148

merged 4 commits into from
Jun 4, 2024

Conversation

s-ol
Copy link
Collaborator

@s-ol s-ol commented May 31, 2024

Caveat: since there is no "default" keymap anymore, the web-keyboards page doesn't show which keys are pressed but just adds a . each time a key is down. Keyboards that are not configured (associated to a page/program) still send events, but they use an invented keysym (Unknown_$scancode) and are not grabbed by folk.

lib/keymap.tcl has both a C/libkeymap and sh/dumpkeys implementation; the former requires building kbd with --enable-libkeymap (not the default on Debian) and the latter requires root access. Either way the console-data package needs to be installed. That should be the case on most end-user Linux boxes, but if needed we could ship a default keymap as fallback (sudo dumpkeys -kf | gzip, ~3kb)

@s-ol
Copy link
Collaborator Author

s-ol commented May 31, 2024

This is ready for review but I could give #131 a shot while I'm at it

@osnr osnr requested a review from cwervo June 3, 2024 21:33
@cwervo
Copy link
Collaborator

cwervo commented Jun 4, 2024

@s-ol Navigation (UP, DOWN, etc.) and typing/deleting characters works in the editor but none of the Control_ characters seems to be firing so I can't save, print, etc. Are you seeing the same?

Ah, I needed console-data, I'll make a note about this in the README in this PR

@s-ol
Copy link
Collaborator Author

s-ol commented Jun 4, 2024

Ah, I needed console-data, I'll make a note about this in the README in this PR

Huh, this is an interesting failure mode. So it seems before installing console-data you had a working dumpkeys command but the default kernel keymap didn't bind the Control_* keysyms? What distribution did you test this on?

@cwervo
Copy link
Collaborator

cwervo commented Jun 11, 2024

This was on Ubuntu 23.04

@cwervo cwervo mentioned this pull request Jun 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants