Files
wisp-open/internal/xhotkey/hotkey_linux.go
T
2026-07-14 17:01:58 -07:00

20 lines
398 B
Go

//go:build linux
package hotkey
import "errors"
func (hk *Hotkey) register() error {
return errors.New("Linux in-app global hotkeys are disabled; use the desktop custom-shortcut command shown in Settings")
}
func (hk *Hotkey) unregister() error {
hk.mu.Lock()
defer hk.mu.Unlock()
if !hk.registered {
return errors.New("hotkey is not registered.")
}
hk.registered = false
return nil
}