mirror of
https://github.com/zaphar/sheetsui.git
synced 2025-07-23 05:19:48 -04:00
feat: clear char queue on Esc
This commit is contained in:
parent
c33739babe
commit
704f9f7746
@ -652,6 +652,7 @@ impl<'ws> Workspace<'ws> {
|
||||
match key.code {
|
||||
KeyCode::Esc => {
|
||||
self.state.reset_n_prefix();
|
||||
self.state.char_queue.clear();
|
||||
}
|
||||
KeyCode::Char(d) if d.is_ascii_digit() => {
|
||||
self.handle_numeric_prefix(d);
|
||||
@ -727,12 +728,6 @@ impl<'ws> Workspace<'ws> {
|
||||
Ok(())
|
||||
})?;
|
||||
}
|
||||
KeyCode::Char('s')
|
||||
if key.modifiers == KeyModifiers::HYPER
|
||||
|| key.modifiers == KeyModifiers::SUPER =>
|
||||
{
|
||||
self.save_file()?;
|
||||
}
|
||||
KeyCode::Char('l') if key.modifiers == KeyModifiers::CONTROL => {
|
||||
self.run_with_prefix(|ws: &mut Workspace<'_>| -> Result<()> {
|
||||
let Address { row: _, col } = &ws.book.location;
|
||||
|
Loading…
x
Reference in New Issue
Block a user