Skip to content

Commit 38ee8c9

Browse files
author
Mehran Kordi
authored
fixed an issue with tab reverse on windows. (#110)
closes #111
1 parent a94ec5b commit 38ee8c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ impl App {
129129
self.toggle_tabs(false)?;
130130
NeedsUpdate::COMMANDS
131131
}
132-
keys::TAB_TOGGLE_REVERSE => {
132+
keys::TAB_TOGGLE_REVERSE
133+
| keys::TAB_TOGGLE_REVERSE_WINDOWS => {
133134
self.toggle_tabs(true)?;
134135
NeedsUpdate::COMMANDS
135136
}

src/keys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ pub const TAB_3: KeyEvent = no_mod(KeyCode::Char('3'));
2020
pub const TAB_4: KeyEvent = no_mod(KeyCode::Char('4'));
2121
pub const TAB_TOGGLE: KeyEvent = no_mod(KeyCode::Tab);
2222
pub const TAB_TOGGLE_REVERSE: KeyEvent = no_mod(KeyCode::BackTab);
23+
pub const TAB_TOGGLE_REVERSE_WINDOWS: KeyEvent =
24+
with_mod(KeyCode::BackTab, KeyModifiers::SHIFT);
2325
pub const FOCUS_WORKDIR: KeyEvent = no_mod(KeyCode::Char('w'));
2426
pub const FOCUS_STAGE: KeyEvent = no_mod(KeyCode::Char('s'));
2527
pub const FOCUS_RIGHT: KeyEvent = no_mod(KeyCode::Right);

0 commit comments

Comments
 (0)