Skip to content

Commit 87b9c5e

Browse files
committed
docs
1 parent 1cc2037 commit 87b9c5e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎simple-keybind/template/src/app_event.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
use crossterm_keybind::KeyBind;
22

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.
311
#[derive(KeyBind)]
412
pub enum AppKeyEvent {
513
/// The app will be closed with following key bindings

0 commit comments

Comments
 (0)