Companion

object Companion

Properties

Link copied to clipboard

Enter, should, well, act on something.

Link copied to clipboard

Backspace, should back out to a previous context (such as backing out a screen)

Link copied to clipboard

Does not listen to user input. Clears the context object of content.

Link copied to clipboard

Shift-F10 or Menu key, should open a context menu (right click menu)

Link copied to clipboard

Right click, should open a context menu (right click menu)

Link copied to clipboard

Ctrl-C, should move the context object to a copy buffer in some way

Link copied to clipboard

Ctrl-X should move the context object to a copy buffer in some way and clear the object

Link copied to clipboard
Link copied to clipboard

Ctrl-F, should open or focus a search box in some way

Link copied to clipboard

Does not listen to user input. used as a map key for forwarding context to another user.

Link copied to clipboard
Link copied to clipboard

F1, should open information window/popup/text etc.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Ctrl-V, should take something from a copy buffer of some kind and move it into the context object

Link copied to clipboard

Does not listen to user input. Fully reverts the scoped context object to defaults.

Link copied to clipboard

Does not listen to user input. Used to revert the current input change of the scoped context object, as oppoed to undo which should act on the whole context object (screen)

Link copied to clipboard

Ctrl-S, should save context object state

Link copied to clipboard

Ctrl-E, should open a navigation menu, as opposed to find which opens text-based finding this should open a "goto" style menu.

Link copied to clipboard

Does not listen to user input. Selects all possible options in the context object.

Link copied to clipboard

Ctrl-Z, should revert the last action taken (total across the whole context object), as opposed to revert, which should focus on the scoped context object only.

Functions

Link copied to clipboard
fun create(id: String, inputType: ContextInput, relevantCheck: ContextType.Relevant): ContextType

Creates a new ContextType and adds it to the context list for checking context inputs.

fun create(id: String, inputType: ContextInput, addToContextList: Boolean, relevantCheck: ContextType.Relevant): ContextType

Creates a new ContextType

Link copied to clipboard
fun getRelevantContext(inputCode: Int, contextInput: ContextInput, ctrl: Boolean, shift: Boolean, alt: Boolean): List<ContextType>

Returns a list of ContextType that are relevant to the provided input. This can return multiple inputs, which can be handled separately or together.