aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input/handler.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-04-03 21:19:39 +0200
committera-kenji <aks.kenji@protonmail.com>2021-04-03 21:19:39 +0200
commit4f5f189373603d29fc8b042b72aae375efbd0a1c (patch)
treed63b769a0c218d4956316fd3128f96ed33c2d9cf /src/common/input/handler.rs
parentMerge branch 'main' of https://github.com/zellij-org/zellij into config-file (diff)
parentAdd Kyle to governance.md (diff)
downloadsl0ppij-4f5f189373603d29fc8b042b72aae375efbd0a1c.tar.gz
sl0ppij-4f5f189373603d29fc8b042b72aae375efbd0a1c.tar.xz
sl0ppij-4f5f189373603d29fc8b042b72aae375efbd0a1c.zip
Merge branch 'main' of https://github.com/zellij-org/zellij into config-file
Diffstat (limited to 'src/common/input/handler.rs')
-rw-r--r--src/common/input/handler.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index 0d30530a..7db14d64 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -82,9 +82,11 @@ impl InputHandler {
break 'input_loop;
}
}
- termion::event::Event::Mouse(_) | termion::event::Event::Unsupported(_) => {
- unimplemented!("Mouse and unsupported events aren't supported!");
- }
+ termion::event::Event::Mouse(_)
+ | termion::event::Event::Unsupported(_) => {
+ // Mouse and unsupported events aren't implemented yet,
+ // use a NoOp untill then.
+ }
},
Err(err) => panic!("Encountered read error: {:?}", err),
}
@@ -128,7 +130,7 @@ impl InputHandler {
))
.unwrap();
self.send_screen_instructions
- .send(ScreenInstruction::ChangeInputMode(mode))
+ .send(ScreenInstruction::ChangeMode(get_mode_info(mode)))
.unwrap();
self.send_screen_instructions
.send(ScreenInstruction::Render)