diff options
author | Gokul Soumya | 2022-08-09 01:31:26 +0000 |
---|---|---|
committer | GitHub | 2022-08-09 01:31:26 +0000 |
commit | 634b6d455f064116c609e7cfa1b2b45e51f40029 (patch) | |
tree | ad06ce4c4f0131d74cc19b6beed000ff043664d8 /helix-view/src/keyboard.rs | |
parent | 4ce5a94552d887b9b14000dfdd1abe76a6d5f315 (diff) |
Add custom event type replacing crossterm's Event (#3169)
Ported over from 61365dfbf3 in the `gui` branch. This will allow
adding our own events, most notably an idle timer event (useful
for adding debounced input in [dynamic pickers][1] used by interactive
global search and workspace symbols).
[1]: https://github.com/helix-editor/helix/pull/3110
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-view/src/keyboard.rs')
-rw-r--r-- | helix-view/src/keyboard.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/helix-view/src/keyboard.rs b/helix-view/src/keyboard.rs index 4d51f981..d1b45b05 100644 --- a/helix-view/src/keyboard.rs +++ b/helix-view/src/keyboard.rs @@ -55,7 +55,6 @@ impl From<crossterm::event::KeyModifiers> for KeyModifiers { /// Represents a key. #[derive(Debug, PartialOrd, Ord, PartialEq, Eq, Clone, Copy, Hash)] -#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum KeyCode { /// Backspace key. Backspace, |