Versions in this module Expand all Collapse all v0 v0.2.0 Oct 1, 2026 Changes in this version + func KeysymNameInto(sym uint32, dst []byte) (int, error) type Keymap + func (k *Keymap) KeyRepeats(keycode uint32) (bool, error) type State + func (s *State) ModIndexActive(idx uint32) (bool, error) + func (s *State) ModNameActive(name string) (bool, error) v0.1.0 Sep 30, 2026 Changes in this version + const MaxUTF8Buffer + var ErrClosed = errors.New("xkbcommon: closed handle") + var ErrUTF8Buffer = fmt.Errorf("xkbcommon: UTF-8 buffer length must be 1..%d", MaxUTF8Buffer) + func Available() error + func KeysymFromName(name string) (uint32, error) + func KeysymName(sym uint32) (string, error) + func WaylandKeycode(evdev uint32) uint32 + type ComposeState struct + func (s *ComposeState) Close() error + func (s *ComposeState) Feed(sym uint32) (uint32, error) + func (s *ComposeState) KeySym() (uint32, error) + func (s *ComposeState) Reset() error + func (s *ComposeState) Status() (uint32, error) + func (s *ComposeState) UTF8() (string, error) + func (s *ComposeState) UTF8Into(dst []byte) (int, error) + type ComposeTable struct + func (t *ComposeTable) Close() error + func (t *ComposeTable) NewState() (*ComposeState, error) + type Context struct + func NewContext() (*Context, error) + func (c *Context) Close() error + func (c *Context) NewComposeTable(locale string) (*ComposeTable, error) + func (c *Context) NewKeymapFD(fd int, size int) (*Keymap, error) + func (c *Context) NewKeymapRules(rules, model, layout, variant, options string) (*Keymap, error) + func (c *Context) NewKeymapString(text string) (*Keymap, error) + type Keymap struct + func (k *Keymap) Close() error + func (k *Keymap) LayoutCount() (uint32, error) + func (k *Keymap) ModIndex(name string) (uint32, error) + func (k *Keymap) NewState() (*State, error) + type State struct + func (s *State) Close() error + func (s *State) KeySym(keycode uint32) (uint32, error) + func (s *State) Layout() (uint32, error) + func (s *State) Mods() (uint32, error) + func (s *State) UTF8(keycode uint32) (string, error) + func (s *State) UTF8Into(keycode uint32, dst []byte) (int, error) + func (s *State) UpdateMask(depressed, latched, locked, groupDepressed, groupLatched, groupLocked uint32) (uint32, error)