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

adds support for fn as a modifier key #169

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

smithkyle
Copy link
Contributor

The Fn key (at least on macOS) is actually a modifier key, so this commit adds support for it to be used as such...the only thing is...is that it doesn't actually seem to operate the same way as on the physical keyboard. For example, "Fn Backspace" should send "Delete", but it ends up just sending "Backspace" again. Based on my testing, "Fn" is being seen as a modifier, but it doesn't actually seem to be modifying. I'm not sure if this is the expected behavior since there are, indeed, separate keycodes for Backspace and Delete.

I initially came down this path hoping to get around the missing "Enter" keycode I implemented in #168. I was hoping I could just get around it by sending Fn + Return, but it didn't work. Based on how the other modifier keys are implemented, I believe I have implemented Function correctly, but have not seen the expected results.

Looking for some guidance... thanks!

@s1hofmann
Copy link
Member

Hi @smithkyle 👋

I'm quite busy at the moment, will try to get back to you as soon as things calmed down.

Sorry for the delay

@smithkyle
Copy link
Contributor Author

No problem at all! :)

@smithkyle
Copy link
Contributor Author

It looks like some keys implicitly set the Fn modifier per this:

koekeishiya/skhd#1

But that doesn't explain why Fn+Backspace doesn't work...

@s1hofmann s1hofmann merged commit 61e748d into nut-tree:develop Jan 29, 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