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

acme: Kcmd not being passed through on linux #31

Closed
andrewchambers opened this issue Jun 3, 2015 · 3 comments · May be fixed by #479
Closed

acme: Kcmd not being passed through on linux #31

andrewchambers opened this issue Jun 3, 2015 · 3 comments · May be fixed by #479

Comments

@andrewchambers
Copy link

Can't trigger copy or paste via keyboard with any combination of ctrl + alt + windows key.

From the code it looks like windows key is the correct combination.

When I add printf("key - %d\n", r); @

I get
key - 99 // When pressing c
key - 3 // When pressing Ctrl + c
key - 99 // When pressing Windows key + c
key - 99 // When pressing alt + c (the keypress is sometimes ignored)

@mehlon
Copy link

mehlon commented Aug 15, 2015

keyboard.h suggests it is mac-only.
Perhaps this patch will be useful to you. Instead of Kcmd, this uses control sequences.

@andrewchambers
Copy link
Author

How unfortunate that someone would accept mac only patches. Thanks mehlon.

@rsc
Copy link
Contributor

rsc commented Jan 15, 2020

We can't map Control to Kcmd because Kcmd+c (copy) and Ctrl+c (stop process) are very different operations. And Alt was taken too, for compose sequences.

Now that just about everything has a Windows key too, if someone wants to map the Windows key to Kcmd, that would be fine. I don't know how though.

@rsc rsc closed this as completed Jan 15, 2020
fhs added a commit to fhs/plan9port that referenced this issue Feb 3, 2021
Kcmd+r (DPI toggle) needed a fix for a deadlock.

Fixes 9fans#31
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 a pull request may close this issue.

3 participants