We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03d81ec commit 3f49e5fCopy full SHA for 3f49e5f
src/app.rs
@@ -133,7 +133,17 @@ impl App<'_> {
133
}
134
135
136
- match self.keybind.get(&key) {
+ let user_event = self.keybind.get(&key);
137
+
138
+ if let Some(UserEvent::Cancel) = user_event {
139
+ if !self.numeric_prefix.is_empty() {
140
+ // Clear numeric prefix and cancel the event
141
+ self.numeric_prefix.clear();
142
+ continue;
143
+ }
144
145
146
+ match user_event {
147
Some(UserEvent::ForceQuit) => {
148
self.tx.send(AppEvent::Quit);
149
0 commit comments