This commit is contained in:
Your Name
2026-05-09 13:51:20 -07:00
parent 6d1fe33c60
commit f111695a45
25 changed files with 376 additions and 299 deletions
+20
View File
@@ -0,0 +1,20 @@
//go:build linux
package hotkey
import "errors"
func (hk *Hotkey) register() error {
return hk.registerPortal()
}
func (hk *Hotkey) unregister() error {
hk.mu.Lock()
if !hk.registered {
hk.mu.Unlock()
return errors.New("hotkey is not registered.")
}
hk.registered = false
hk.mu.Unlock()
return hk.cleanupPortal()
}