Open torywalker opened 3 years ago
Same issue here. A workaround would be appreciated if anyone finds one.
I tried using this to capture Fn+Space (I bought a new keyboard that has a "Microphone" key that sends that combo.) and similarly wasn't able to:
let hotKey = HotKey(key: .space, modifiers: [.function])
Setup
macOS: 11.0.1 HotKey: 0.1.3 Deployment Target: 10.15 XCode Version: 12.3
Issue
I seem to be unable to capture the
fn
key with HotKey when looking at themodifierFlags
.I also tried passing the
modifierFlags
directly:When recording a shortcut with the
fn
pressed, it seems to omitfn
from what is stored. Executing the recorded shortcut withfn
pressed also does not activate the shortcut (it does work when omittingfn
key).When describing the stored shortcut, the
fn
key, it is absent:However, performing the following check prior to storage indicates that the
fn
key is indeed presentIs there anything I'm missing? Is this unsupported?