2026-03-13 14:34:30 +00:00
|
|
|
package keybinding
|
|
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
2026-03-31 05:31:00 +00:00
|
|
|
var ErrorAlreadyRegistered = errors.New("keybinding: accelerator already registered")
|
2026-03-13 14:34:30 +00:00
|
|
|
|
|
|
|
|
type BindingInfo struct {
|
|
|
|
|
Accelerator string `json:"accelerator"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type QueryList struct{}
|
|
|
|
|
|
|
|
|
|
type TaskAdd struct {
|
|
|
|
|
Accelerator string `json:"accelerator"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TaskRemove struct {
|
|
|
|
|
Accelerator string `json:"accelerator"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActionTriggered struct {
|
|
|
|
|
Accelerator string `json:"accelerator"`
|
|
|
|
|
}
|