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
Where are you trying to ise rhe function key?
Whats your OS?
Wayland/X11?
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
What game? Many games are not supporting anything higher than F12.
(I am using it myself for a few games)
War Thunder
I think somebody else also arleady mentioned having problems with War Thunder. I don't think they properly support F13 and up on Linux.
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)
Thats an interresting find.
Then it seams, that war thunder maybe is trying to catch opendecks key as well?
If I bind it to something that works, for example f10, it does register it as
for this setup

as this

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

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?
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
Discord porbably uses 0 when not registering what key it is as a placeholder/safeguard
it only visual display, stream deck does not trigger my other keybinds that show as 0
those are f20 and f21 (or something else close to those buttons)

As said, probably placeholder/safeguard to show a not known key