hotkeys

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler manages global keyboard shortcuts

func NewHandler

func NewHandler(backend platform.Backend, tiler Tiler) *Handler

NewHandler creates a new hotkey handler.

func (*Handler) Register

func (h *Handler) Register(keySequence string) error

Register registers the tiling hotkey.

func (*Handler) RegisterFunc

func (h *Handler) RegisterFunc(keySequence string, callback func()) error

RegisterFunc registers an arbitrary hotkey callback.

func (*Handler) RegisterMoveMode

func (h *Handler) RegisterMoveMode(keySequence string) error

RegisterMoveMode registers the move mode toggle hotkey. Navigation keys (arrows, Enter, Escape) are handled via keyboard grab when move mode is active, not via global hotkey registration.

func (*Handler) SetMoveMode

func (h *Handler) SetMoveMode(mm *movemode.Mode)

SetMoveMode sets the move mode controller reference.

type Tiler

type Tiler interface {
	TileCurrentMonitor() error
}

Tiler interface for tiling operations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL