From 80ec98da01e7e98201289d27bcdd3f5bf95d4b9d Mon Sep 17 00:00:00 2001 From: Mehran Kordi Date: Thu, 4 Jun 2020 17:34:29 +0200 Subject: [PATCH 1/2] fixed an issue with tab reverse on windows. --- src/app.rs | 3 ++- src/keys.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 72edbb25ec..dba04de3c0 100644 --- a/src/app.rs +++ b/src/app.rs @@ -129,7 +129,8 @@ impl App { self.toggle_tabs(false)?; NeedsUpdate::COMMANDS } - keys::TAB_TOGGLE_REVERSE => { + keys::TAB_TOGGLE_REVERSE + | keys::TAB_TOGGLE_REVERSE_WINDOWS => { self.toggle_tabs(true)?; NeedsUpdate::COMMANDS } diff --git a/src/keys.rs b/src/keys.rs index ab18369c84..7596f91fd9 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -20,6 +20,7 @@ pub const TAB_3: KeyEvent = no_mod(KeyCode::Char('3')); pub const TAB_4: KeyEvent = no_mod(KeyCode::Char('4')); pub const TAB_TOGGLE: KeyEvent = no_mod(KeyCode::Tab); pub const TAB_TOGGLE_REVERSE: KeyEvent = no_mod(KeyCode::BackTab); +pub const TAB_TOGGLE_REVERSE_WINDOWS: KeyEvent = with_mod(KeyCode::BackTab, KeyModifiers::SHIFT); pub const FOCUS_WORKDIR: KeyEvent = no_mod(KeyCode::Char('w')); pub const FOCUS_STAGE: KeyEvent = no_mod(KeyCode::Char('s')); pub const FOCUS_RIGHT: KeyEvent = no_mod(KeyCode::Right); From bcfc21be491df3659072c35ecf8c059615e8246f Mon Sep 17 00:00:00 2001 From: Mehran Kordi Date: Thu, 4 Jun 2020 17:48:37 +0200 Subject: [PATCH 2/2] fixed a formating issue. --- src/keys.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keys.rs b/src/keys.rs index 7596f91fd9..7ba8aafc09 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -20,7 +20,8 @@ pub const TAB_3: KeyEvent = no_mod(KeyCode::Char('3')); pub const TAB_4: KeyEvent = no_mod(KeyCode::Char('4')); pub const TAB_TOGGLE: KeyEvent = no_mod(KeyCode::Tab); pub const TAB_TOGGLE_REVERSE: KeyEvent = no_mod(KeyCode::BackTab); -pub const TAB_TOGGLE_REVERSE_WINDOWS: KeyEvent = with_mod(KeyCode::BackTab, KeyModifiers::SHIFT); +pub const TAB_TOGGLE_REVERSE_WINDOWS: KeyEvent = + with_mod(KeyCode::BackTab, KeyModifiers::SHIFT); pub const FOCUS_WORKDIR: KeyEvent = no_mod(KeyCode::Char('w')); pub const FOCUS_STAGE: KeyEvent = no_mod(KeyCode::Char('s')); pub const FOCUS_RIGHT: KeyEvent = no_mod(KeyCode::Right);