diff --git a/config.sample.yaml b/config.sample.yaml index afcbb79..8589648 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -82,4 +82,4 @@ bindings: close_modal: [""] # the key binding to close the application. - exit: [""] + exit: ["", "q"] diff --git a/docs/src/guides/configuration.md b/docs/src/guides/configuration.md index e2ad127..0b6e50d 100644 --- a/docs/src/guides/configuration.md +++ b/docs/src/guides/configuration.md @@ -253,7 +253,7 @@ bindings: close_modal: [""] # the key binding to close the application. - exit: [""] + exit: ["", "q"] ``` You can choose to override any of them. Keep in mind these are overrides so if for example you change `next`, the diff --git a/src/custom.rs b/src/custom.rs index d505633..d590910 100644 --- a/src/custom.rs +++ b/src/custom.rs @@ -409,7 +409,7 @@ fn default_close_modal_bindings() -> Vec { } fn default_exit_bindings() -> Vec { - make_keybindings([""]) + make_keybindings(["", "q"]) } #[cfg(test)]