diff --git a/Cargo.lock b/Cargo.lock index 4fbcca8..73266a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2486,7 +2486,7 @@ dependencies = [ [[package]] name = "room" -version = "1.0.0" +version = "1.1.1" dependencies = [ "ansi_term", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 63653f6..ad785f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "room" -version = "1.1.0" +version = "1.1.1" edition = "2021" authors = ["Lucas Rosa "] publish = false diff --git a/src/main.rs b/src/main.rs index 926ff30..515f9ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -245,6 +245,7 @@ impl ZellijPlugin for State { should_render = true; } Event::Key(Key::Char(c)) if c.is_ascii_digit() && self.quick_jump => { + close_focus(); switch_tab_to(c.to_digit(10).unwrap()); } Event::Key(Key::Char(c)) if c.is_ascii_alphabetic() || c.is_ascii_digit() => {