aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorKunal Mohan <44079328+kunalmohan@users.noreply.github.com>2021-05-10 20:44:05 +0530
committerGitHub <noreply@github.com>2021-05-10 20:44:05 +0530
commit74526a936a8020f11ba3d7ba41b3e6c0a77b2366 (patch)
tree57d6b622fc9060d4d0d34d782a192cbfe7b70b12 /src/common/errors.rs
parentimprove bug report template (#466) (diff)
parentAfter rebase (diff)
downloadsl0ppij-74526a936a8020f11ba3d7ba41b3e6c0a77b2366.tar.gz
sl0ppij-74526a936a8020f11ba3d7ba41b3e6c0a77b2366.tar.xz
sl0ppij-74526a936a8020f11ba3d7ba41b3e6c0a77b2366.zip
Merge pull request #471 from dantepippi/switch-tabs-464
Switching Tabs if there's no pane in the direction
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 148a3a9e..c2caf19d 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -192,9 +192,11 @@ pub enum ScreenContext {
FocusNextPane,
FocusPreviousPane,
MoveFocusLeft,
+ MoveFocusLeftOrPreviousTab,
MoveFocusDown,
MoveFocusUp,
MoveFocusRight,
+ MoveFocusRightOrNextTab,
Exit,
ScrollUp,
ScrollDown,
@@ -237,9 +239,13 @@ impl From<&ScreenInstruction> for ScreenContext {
ScreenInstruction::FocusNextPane => ScreenContext::FocusNextPane,
ScreenInstruction::FocusPreviousPane => ScreenContext::FocusPreviousPane,
ScreenInstruction::MoveFocusLeft => ScreenContext::MoveFocusLeft,
+ ScreenInstruction::MoveFocusLeftOrPreviousTab => {
+ ScreenContext::MoveFocusLeftOrPreviousTab
+ }
ScreenInstruction::MoveFocusDown => ScreenContext::MoveFocusDown,
ScreenInstruction::MoveFocusUp => ScreenContext::MoveFocusUp,
ScreenInstruction::MoveFocusRight => ScreenContext::MoveFocusRight,
+ ScreenInstruction::MoveFocusRightOrNextTab => ScreenContext::MoveFocusRightOrNextTab,
ScreenInstruction::Exit => ScreenContext::Exit,
ScreenInstruction::ScrollUp => ScreenContext::ScrollUp,
ScreenInstruction::ScrollDown => ScreenContext::ScrollDown,