You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# keymap-rs
2
2
3
-
**keymap-rs** is a lightweight and extensible key mapping library for Rust applications. It supports parsing key mappings from configuration files and mapping them to actions based on input events from backends like [`crossterm`](https://crates.io/crates/crossterm), [`termion`](https://docs.rs/termion/latest/termion/), `wasm` (via `web_sys`), and others.
3
+
**keymap-rs** is a lightweight and extensible key mapping library for Rust applications. It supports parsing key mappings from configuration files and mapping them to actions based on input events from backends like [`crossterm`](https://crates.io/crates/crossterm), [`termion`](https://docs.rs/termion/latest/termion/), `wasm`, and others.
4
4
5
5
---
6
6
@@ -15,7 +15,7 @@
15
15
*`@alnum` – alphanumeric
16
16
*`@any` – match any key
17
17
* 🧬 **Derive-based config parser** via `keymap_derive`
18
-
* 🌐 Backend-agnostic (works with `crossterm`, `termion`, `web_sys`, etc.)
18
+
* 🌐 Backend-agnostic (works with `crossterm`, `termion`, `wasm`, etc.)
19
19
* 🪶 Lightweight and extensible
20
20
21
21
---
@@ -24,21 +24,31 @@
24
24
25
25
Run the following command:
26
26
27
-
> \[!NOTE]
28
-
> By default, this installs with `crossterm` as the default backend. You can enable a different backend by specifying the feature flag:
29
-
>
30
-
> ```sh
31
-
> cargo add keymap --features termion # or web_sys, etc.
0 commit comments