aboutsummaryrefslogtreecommitdiffstats
path: root/src/input.rs
diff options
context:
space:
mode:
authorDenis Maximov <denismaximov98@gmail.com>2020-12-04 10:59:06 +0200
committerGitHub <noreply@github.com>2020-12-04 09:59:06 +0100
commitb7b3ff74cfa09fce1442bda42332939de4903a7d (patch)
treee84876d04679ebbc913e9d65f6c2a45f0642fdcc /src/input.rs
parentfix(compatibility): keypad arrow fixes (#80) (diff)
downloadsl0ppij-b7b3ff74cfa09fce1442bda42332939de4903a7d.tar.gz
sl0ppij-b7b3ff74cfa09fce1442bda42332939de4903a7d.tar.xz
sl0ppij-b7b3ff74cfa09fce1442bda42332939de4903a7d.zip
feat(rect): directional move focus #55 (#78)
* feat: directional move focus #55 * wip: refactored match into if let * wip: basic tests * feat: move to most overlapping pane tests * fix: formatting * wip: Moved the definitions to the Rect trait * formatting
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index 8c7bd88d..ea2c4d41 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -191,6 +191,30 @@ impl InputHandler {
.send(ScreenInstruction::ToggleActiveTerminalFullscreen)
.unwrap();
}
+ [121] => {
+ // y
+ self.send_screen_instructions
+ .send(ScreenInstruction::MoveFocusLeft)
+ .unwrap()
+ }
+ [117] => {
+ // u
+ self.send_screen_instructions
+ .send(ScreenInstruction::MoveFocusDown)
+ .unwrap()
+ }
+ [105] => {
+ // i
+ self.send_screen_instructions
+ .send(ScreenInstruction::MoveFocusUp)
+ .unwrap()
+ }
+ [111] => {
+ // o
+ self.send_screen_instructions
+ .send(ScreenInstruction::MoveFocusRight)
+ .unwrap()
+ }
//@@@khs26 Write this to the powerbar?
_ => {}
}