1 parent 1cc2037 commit 87b9c5eCopy full SHA for 87b9c5e
1 file changed
simple-keybind/template/src/app_event.rs
@@ -1,5 +1,13 @@
1
use crossterm_keybind::KeyBind;
2
3
+// NOTE
4
+// The KeyBindTrait will be impletemeted, so you can use the methods to generate and load a
5
+// keybind config, and users can easily customize from a config.
6
+// https://docs.rs/crossterm-keybind/latest/crossterm_keybind/trait.KeyBindTrait.html
7
+//
8
+// Example using case:
9
+// use `to_toml_example(path)` to a file, after user customized it, it can loaded by
10
+// `init_and_load(path)` when app starting.
11
#[derive(KeyBind)]
12
pub enum AppKeyEvent {
13
/// The app will be closed with following key bindings
0 commit comments