Skip to main content

Module ime

Module ime 

Source
Expand description

Input-method-editor (IME) descriptors attached to widget nodes.

A focusable node carries an optional ImeContext. Its presence declares “this node is a text-input surface” — the platform layer enables the OS input method while the node is focused. Its absence (the default for every node) means no OS IME: enabling IME changes how text arrives (printable text routes through Ime::Commit and KeyboardInput is suppressed during preedit), so the safe, common-case default is off.

This module is deliberately winit-free — ImePurpose mirrors winit’s enum of the same name so teksilo-core stays decoupled from the windowing backend; teksilo-app maps between the two at the platform boundary.

Structs§

ImeContext
Per-node IME descriptor. Presence = “this focusable node is a text-input surface” (OS IME enabled while focused); absence (the node default) = no OS IME. Carried on WidgetNode, set via WidgetBuilder::ime_input.

Enums§

ImePurpose
Hint describing what an IME-enabled field is used for. Lets the platform optimize the input method — e.g. suppress the learning dictionary / candidate history for passwords, or surface terminal-specific keys.