A wrapper class around an xkbcommon keymap and state tracker.
This class knows about some common modifier combinations and keeps track of the currently pressed keys and modifiers. It also has some utility functions to transform hardware keycodes into a common representation.
Since this class is keeping track of all the pressed and depressed modifiers, IT MUST ALWAYS BE KEPT UP TO DATE WITH ANY NEWLY PRESSED MODIFIERS. Undefined behaviour will result if it is not kept up to date.
Instances can be easily created from keymap strings with CXkbcommonContext Abstracts the key composer key state
Enumerator |
---|
IDLE | Key composer is idle
|
COMPOSING | Key composer is busy composing a key
|
FINISHED | Key composer finished composing a key, it has a valid key in the buffer
|
CANCELLED | Key composer was cancelled
|