# Example FrankenTUI keymap file (parsed by the ftui-core `serde` feature).
#
# This is the canonical, human-editable keymap format. It is mirrored in
# docs/spec/keybinding-policy.md section 9.3 and kept honest by the test
# `keybinding::keymap_tests::toml_example_in_docs_parses`, which parses this
# very file with `include_str!` and asserts the resulting `KeyMap`.
#
# `chord_timeout_ms` is clamped to 200..=5000 on load. Each `[[bindings]]`
# entry names a chord (whitespace-separated combos), an action, and optional
# `priority` (Global | Mode | Widget, default Global), `context`, and `label`.
# Unknown keys are rejected (a typo names itself) so a bad file fails loudly
# instead of silently dropping a binding.
= 750
[[]]
= "Ctrl+x Ctrl+s"
= "Save"
= "Mode"
= "save"
[[]]
= "Enter"
= "Newline"
= "Widget"
= "editor"
[[]]
= "g g"
= "Top"
= "go to top"