Skip to main content

default_key_handler

Function default_key_handler 

Source
pub fn default_key_handler(
    editor: RwSignal<Editor>,
) -> impl Fn(KeypressKey) + 'static
Expand description

Returns a key handler closure that dispatches against the default keymap.

This is used internally by text_editor to provide standard editing keybindings. If you need the default keymap with additional custom shortcuts, use KeypressMap::handle_keypress directly instead.