Documentation
¶
Overview ¶
Package native holds the errors shared by Keel's platform capabilities. The capabilities themselves live in subpackages:
native/permission check and request system permissions native/screen list displays, capture screenshots native/input synthesize mouse and keyboard input native/hotkey system-wide shortcuts native/notification local notifications (macOS app bundles and Linux D-Bus)
Implemented on macOS 14+ (cgo), Windows and Linux under X11; elsewhere, and in macOS builds without cgo, every call returns ErrUnsupported. To add a capability, add it to each platform file in internal/sys (plus a stub in sys_other.go) and a small public package that validates arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupported = errors.New("native: unsupported on this platform") ErrPermissionDenied = errors.New("native: permission not granted") ErrInvalidArgument = errors.New("native: invalid argument") ErrTimeout = errors.New("native: operation timed out") ErrConflict = errors.New("native: already registered") ErrFailed = errors.New("native: operation failed") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package clipboard reads a bounded snapshot of text, encoded images and file paths without linking to the UI.
|
Package clipboard reads a bounded snapshot of text, encoded images and file paths without linking to the UI. |
|
Package hotkey registers system-wide shortcuts that fire even when another application is in front.
|
Package hotkey registers system-wide shortcuts that fire even when another application is in front. |
|
Package input synthesizes mouse and keyboard events.
|
Package input synthesizes mouse and keyboard events. |
|
internal
|
|
|
sys
Package sys binds the platform code.
|
Package sys binds the platform code. |
|
wlclip
Package wlclip reads the Wayland clipboard through an application's own wl_display.
|
Package wlclip reads the Wayland clipboard through an application's own wl_display. |
|
Package notification posts local operating-system notifications independently of Keel's UI.
|
Package notification posts local operating-system notifications independently of Keel's UI. |
|
Package permission checks and requests macOS privacy permissions.
|
Package permission checks and requests macOS privacy permissions. |
|
Package screen lists displays and captures screenshots.
|
Package screen lists displays and captures screenshots. |
Click to show internal directories.
Click to hide internal directories.