text_editor_keys

Function text_editor_keys 

Source
pub fn text_editor_keys(
    text: impl Into<Rope>,
    handle_key_event: impl Fn(RwSignal<Editor>, &KeypressKey) -> CommandExecuted + 'static,
) -> TextEditor
Expand description

A text editor view built on top of Editor that allows providing your own keymap callback.

See text_editor for a list of the default keymaps that you will need to handle yourself if using this function.