Skip to content

Commit

Permalink
fix: close focus on quick jump
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Sep 6, 2024
1 parent 7f69b1a commit c808adc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "room"
version = "1.1.0"
version = "1.1.1"
edition = "2021"
authors = ["Lucas Rosa <x@rvcas.dev>"]
publish = false
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() => {
Expand Down

0 comments on commit c808adc

Please sign in to comment.