tulskiy / jkeymaster

A library for registering global hotkeys in java with JNA. The goal is to support X11-based platforms, Windows and MacOSX
GNU Lesser General Public License v3.0
233 stars 45 forks source link

Alt+space is unable to consume event. #29

Open zgqq opened 7 years ago

zgqq commented 7 years ago

Firefox still will response whether on Win7 or Win10 when alt+space is registered as hotkey.

tulskiy commented 7 years ago

If it's an os hotkey or already registered by another application, then there's nothing I can do. Global hotkeys are exclusive to whoever registered it, that's how the api works. What you need is a global keyboard hook like https://github.com/kwhat/jnativehook

zgqq commented 7 years ago

@tulskiy No,you didn't understand what i said. Firefox will show its menu when merely pressing alt,so it still response even if alt+space is registered as hotkey successfully.If you press alt+space and don't release until own dialog pops,firefox does't show its menu.Namely,hotkey event is received too late.