dictee icon indicating copy to clipboard operation
dictee copied to clipboard

Doesn't register F (non fn) keys

Open gabus opened this issue 4 months ago • 3 comments

Function keys usually have secondary ability. Currently non Fn buttons are not picked up by Dictee. For example my keyboard NuPhy has microphone on F5. That'd be perfect trigger to start recording but it not recognised in configuration.

I made PR which fixes on my machine but you should look through how this should be implemented in the big picture. https://github.com/rcspam/dictee/pull/29

gabus avatar Jul 29 '26 00:07 gabus

Thanks for this one, and for digging into it rather than just reporting it. Your analysis was spot on: those were exactly the two things standing in the way.

Both are fixed on the 1.3 branch now:

The device filter only rejects a keyboard if it actually moves a pointer (X/Y motion). A media block declaring a volume axis or a horizontal wheel is no longer thrown out, which is what made your F5 unreachable. Mice, touchpads and tablets are still excluded, so nothing gets its pointer frozen.

Key capture no longer goes through the key symbol at all. It reads the keycode straight from the device, so any key works now, including the ones that produce no character: microphone, media keys, brightness, whatever your keyboard puts on that row. That rework was planned for 1.4, but your report moved it up.

Two things came out of it along the way. The push-to-talk daemon holds your keyboard exclusively, so the settings window literally could not see the key you pressed. It now steps aside while you pick a key and takes the keyboard back afterwards. And if the key you press lives on a device dictee doesn't listen to by default, it now tells you which device that is instead of silently accepting a key that would never fire.

This ships in 1.3.7. If you get a chance to try it on the NuPhy when it's out, I'd love to know whether the mic key behaves the way you expected.

rcspam avatar Aug 10 '26 11:08 rcspam

1.3.7-rc4 is out as a pre-release with both fixes. If you get a chance to try it on the NuPhy, I'd love to know whether F5 and the mic key work as dictation keys:

curl -fsSL https://github.com/rcspam/dictee/releases/download/v1.3.7-rc4/install.sh | bash -s -- --version 1.3.7-rc4

rcspam avatar Oct 26 '26 15:10 rcspam

1.3.7 is out as the final release. The code is the same as rc4, only the version number changed. If you already run rc4, you don't need to do anything. Otherwise, to update:

curl -fsSL https://github.com/rcspam/dictee/releases/download/v1.3.7/install.sh | bash

If something still doesn't work for you, tell me here.

rcspam avatar Oct 27 '26 13:10 rcspam