diff options
Diffstat (limited to 'src/verb/verb.rs')
-rw-r--r-- | src/verb/verb.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/verb/verb.rs b/src/verb/verb.rs index f0e4f33..14b8777 100644 --- a/src/verb/verb.rs +++ b/src/verb/verb.rs @@ -6,7 +6,7 @@ use { keys::KEY_FORMAT, path::{self, PathAnchor}, }, - crossterm::event::{KeyCode, KeyEvent, KeyModifiers}, + crossterm::event::KeyEvent, std::path::PathBuf, }; @@ -126,24 +126,6 @@ impl Verb { } self.update_key_desc(); } - pub fn with_alt_key(self, chr: char) -> Self { - self.with_key(KeyEvent { - code: KeyCode::Char(chr), - modifiers: KeyModifiers::ALT, - }) - } - pub fn with_control_key(self, chr: char) -> Self { - self.with_key(KeyEvent { - code: KeyCode::Char(chr), - modifiers: KeyModifiers::CONTROL, - }) - } - pub fn with_char_key(self, chr: char) -> Self { - self.with_key(KeyEvent { - code: KeyCode::Char(chr), - modifiers: KeyModifiers::NONE, - }) - } pub fn no_doc(mut self) -> Self { self.show_in_doc = false; self |