diff options
| author | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-05-09 17:24:15 -0300 |
|---|---|---|
| committer | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-05-09 17:24:15 -0300 |
| commit | 62796c1a31a8babd2edf16054852f00bab0557df (patch) | |
| tree | e40fb0589f4f7b485e34ed52b574c99d92445158 /src/common | |
| parent | New behavior for h and l (diff) | |
| download | sl0ppij-62796c1a31a8babd2edf16054852f00bab0557df.tar.gz sl0ppij-62796c1a31a8babd2edf16054852f00bab0557df.tar.xz sl0ppij-62796c1a31a8babd2edf16054852f00bab0557df.zip | |
After rebase
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/screen.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/screen.rs b/src/common/screen.rs index 525575bf..44cfe3ba 100644 --- a/src/common/screen.rs +++ b/src/common/screen.rs @@ -424,12 +424,32 @@ pub fn screen_thread_main( ScreenInstruction::MoveFocusLeft => { screen.get_active_tab_mut().unwrap().move_focus_left(); } + ScreenInstruction::MoveFocusLeftOrPreviousTab => { + if !screen.get_active_tab_mut().unwrap().move_focus_left() { + screen.switch_tab_prev(); + } + screen + .bus + .senders + .send_to_server(ServerInstruction::UnblockInputThread) + .unwrap(); + } ScreenInstruction::MoveFocusDown => { screen.get_active_tab_mut().unwrap().move_focus_down(); } ScreenInstruction::MoveFocusRight => { screen.get_active_tab_mut().unwrap().move_focus_right(); } + ScreenInstruction::MoveFocusRightOrNextTab => { + if !screen.get_active_tab_mut().unwrap().move_focus_right() { + screen.switch_tab_next(); + } + screen + .bus + .senders + .send_to_server(ServerInstruction::UnblockInputThread) + .unwrap(); + } ScreenInstruction::MoveFocusUp => { screen.get_active_tab_mut().unwrap().move_focus_up(); } |
