Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
516 views
in Technique[技术] by (71.8m points)

language agnostic - Intercepting the Fn key on laptops

Sometimes when I work on Thinkpads/MSI laptops, the Ctrl and Fn key are swapped (Fn being the leftmost key), and it drives me nuts - I keep hitting Fn instead of Ctrl.

I was wondering if it's at all possible to intercept the Fn key. I'd like to write a hook that swaps the Ctrl / Fn keys, but it seems that Fn is not being processed by the OS at all.

Any ideas?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Sorry. As you mentioned, the Fn key isn't processed by the OS, but received as tuples of Fn + [key] . The best you could probably do would be mapping every Fn + [key] combination to ctrl (and that's only if you never use Fn keys).

Edit: Found this. Before you give up hope, might want to give it a try.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...