Function keys above 12 not working

Hello, as described here https://github.com/enigo-rs/enigo/blob/v0.5.0/src/keycodes.rs functions from F1 to F20 should be working on all OS, but when testing it does seem like only F1 to F12 are working and nothing happens for all F keys above. [k(F20,p)] - not working [k(F10,p)] - working
GitHub
enigo/src/keycodes.rs at v0.5.0 · enigo-rs/enigo
Cross platform input simulation in Rust. Contribute to enigo-rs/enigo development by creating an account on GitHub.
17 Replies
Terrorwolf
Terrorwolf5d ago
Where are you trying to ise rhe function key? Whats your OS? Wayland/X11?
Bosnia
BosniaOP5d ago
oh sorry, that's important and I forgot about it, I'm on arch, wayland Right now I'm trying to bind it to an action in game
Terrorwolf
Terrorwolf5d ago
What game? Many games are not supporting anything higher than F12. (I am using it myself for a few games)
Bosnia
BosniaOP5d ago
War Thunder
Terrorwolf
Terrorwolf5d ago
I think somebody else also arleady mentioned having problems with War Thunder. I don't think they properly support F13 and up on Linux.
Bosnia
BosniaOP5d ago
It does register my f20-something, that was bound to my mouse as K196 but doesn't only registers stream deck's keypress as K248 (which is default for every key on the deck)
Terrorwolf
Terrorwolf5d ago
Thats an interresting find. Then it seams, that war thunder maybe is trying to catch opendecks key as well?
Bosnia
BosniaOP5d ago
If I bind it to something that works, for example f10, it does register it as
Bosnia
BosniaOP5d ago
for this setup
No description
Bosnia
BosniaOP5d ago
as this
No description
Bosnia
BosniaOP5d ago
If I try the same on discord keybinds, everything above F12 registers as just K248 (default for every keybind), if I go lower it registers as both default and F function
No description
Terrorwolf
Terrorwolf5d ago
Interesting. For me it only registers the F key. Will try something higher in discord later when at home. Is it picking something up when pressing a button with no action bound to the key? So an empty button?
Bosnia
BosniaOP5d ago
yes, it picks up default stream deck input discord shows it as 0 (but it does it for f20, f21 from my mouse too) but in WT it says K248
Terrorwolf
Terrorwolf5d ago
Discord porbably uses 0 when not registering what key it is as a placeholder/safeguard
Bosnia
BosniaOP5d ago
it only visual display, stream deck does not trigger my other keybinds that show as 0
Bosnia
BosniaOP5d ago
those are f20 and f21 (or something else close to those buttons)
No description
Terrorwolf
Terrorwolf5d ago
As said, probably placeholder/safeguard to show a not known key

Did you find this page helpful?