handleContext
Handle a context event. This will be triggered by a parent, typically on key press or mouse click. A parent object can of course also be a context handler, handle context as applicable and then pass the event downstream for further handling.
See the Wiki for a detailed overview of the ContextAction system in fzzy config.
Author
fzzyhmstrs
Since
0.6.0
Parameters
ContextType the context event type for handling. This is effectively the "active keybind" to handle. For example, ContextType.COPY will be passed when ctrl+C is pressed, and can be handled as a copy action when relevant.
Position a position context for acting against. This can be updated by a context handler before usage or before passing downstream. For example, if a parent widget receives a context request, it can add it's x/y/width/height context to the position before passing.