pub fn init(cx: &mut App)Expand description
Install the default key bindings. Call once at startup.
Every binding is scoped to KEY_CONTEXT, so they are inert outside a
focused field and an app is free to bind the same chords elsewhere.
Optional. This is a convenience, not a requirement: every action above is a public type, so an app that wants its own keymap simply does not call this and binds what it likes instead —
ⓘ
use ui::input::{self, Home, KEY_CONTEXT};
cx.bind_keys([KeyBinding::new("ctrl-a", Home, Some(KEY_CONTEXT))]);It is all-or-nothing, so taking the clipboard defaults while replacing the motion ones means rebinding the lot. That is deliberate until something needs finer grain.