global-hotkey icon indicating copy to clipboard operation
global-hotkey copied to clipboard

Cannot use Globe/Fn key as a shortcut on MacOS

Open Uluwatta opened this issue 1 year ago • 4 comments

Hi Team,

Is there a way to do this ? couldn't find the possible option on https://github.com/tauri-apps/global-hotkey/blob/c9913a97667b3e44cb000de384cd8937d5a0050a/src/hotkey.rs#L233

Thanks

Uluwatta avatar Oct 19 '24 06:10 Uluwatta

It is not supported atm and I don't know if it is event supported by the OS, I don't have a macOS to test either.

The problem is figuring out if it has a code in here https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.6.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/Events.h

amrbashir avatar Oct 29 '24 20:10 amrbashir

@amrbashir Would it be on this line?

izyuumi avatar Sep 12 '25 08:09 izyuumi

Looks like the most likely one though that doesn't answer if macOS allows listening to it (with the APIs we use), that would have to be tested by someone with a macOS device.

FabianLars avatar Sep 12 '25 08:09 FabianLars

@FabianLars Excuse me for my lack of knowledge. I have a macOS, so I can test. How would I go about testing?

izyuumi avatar Sep 12 '25 08:09 izyuumi