diff options
| author | Kunal Mohan <44079328+kunalmohan@users.noreply.github.com> | 2021-05-10 20:44:05 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-10 20:44:05 +0530 |
| commit | 74526a936a8020f11ba3d7ba41b3e6c0a77b2366 (patch) | |
| tree | 57d6b622fc9060d4d0d34d782a192cbfe7b70b12 /src/common/errors.rs | |
| parent | improve bug report template (#466) (diff) | |
| parent | After rebase (diff) | |
| download | sl0ppij-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.rs | 6 |
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, |
