Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is "Fn key" not defined in X Window in "X11/keysymdef.h"?

Tags:

x11

I tried to simulate keypress by Xlib, but I can't find out where Fn key was defined in " keysymdef.h ".

If it really wasn't defined in Xlib, are there any workarounds for it ?

like image 735
Kevin Dong Avatar asked Mar 19 '23 16:03

Kevin Dong


1 Answers

Fn works differently from modifiers such as Shift: it's typically caught inside the keyboard controller or in the BIOS, and the combined (Fn + other) keypress is sent over the bus as a single signal. That means that X11, or the OS for that matter, doesn't even get to see that Fn was pressed.

like image 76
Fred Foo Avatar answered Apr 10 '23 11:04

Fred Foo