diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-04-03 21:19:39 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-04-03 21:19:39 +0200 |
| commit | 4f5f189373603d29fc8b042b72aae375efbd0a1c (patch) | |
| tree | d63b769a0c218d4956316fd3128f96ed33c2d9cf /src/common/input | |
| parent | Merge branch 'main' of https://github.com/zellij-org/zellij into config-file (diff) | |
| parent | Add Kyle to governance.md (diff) | |
| download | sl0ppij-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')
| -rw-r--r-- | src/common/input/handler.rs | 10 |
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) |
