Module input

Source
Expand description

Handle input from winit.

Certain key combinations should send some escape sequence back to the PTY. In order to figure that out, state about which modifier keys are pressed needs to be tracked. Additionally, we need a bit of a state machine to determine what to do when a non-modifier key is pressed.

Modulesยง

keyboard

Structsยง

Processor
Processes input from winit.

Constantsยง

CLICK_THRESHOLD ๐Ÿ”’
Threshold used for double_click/triple_click.
FONT_SIZE_STEP
Font size change interval in px.
MAX_TAP_DISTANCE ๐Ÿ”’
Distance before a touch input is considered a drag.
MIN_SELECTION_SCROLLING_HEIGHT ๐Ÿ”’
Minimum number of pixels at the bottom/top where selection scrolling is performed.
SELECTION_SCROLLING_INTERVAL ๐Ÿ”’
Interval for mouse scrolling during selection outside of the boundaries.
SELECTION_SCROLLING_STEP ๐Ÿ”’
Number of pixels for increasing the selection scrolling speed factor by one.

Traitsยง

ActionContext
Execute ๐Ÿ”’