aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input/handler.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-04 01:13:16 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:48:17 +0530
commitd33106431dd22759b133a838337427a388f6008f (patch)
treea270cd5ea1d0cfb668706977057c5501e6b4043b /src/common/input/handler.rs
parentIntroduce IpcReceiverWIthContext and move ipc stuff to common/ipc.rs (diff)
downloadsl0ppij-d33106431dd22759b133a838337427a388f6008f.tar.gz
sl0ppij-d33106431dd22759b133a838337427a388f6008f.tar.xz
sl0ppij-d33106431dd22759b133a838337427a388f6008f.zip
Fix after rebase
Diffstat (limited to 'src/common/input/handler.rs')
-rw-r--r--src/common/input/handler.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index 7a4a4e52..75f9f8b1 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -11,7 +11,7 @@ use crate::server::ServerInstruction;
use crate::CommandIsExecuting;
use termion::input::{TermRead, TermReadEventsAndRaw};
-use zellij_tile::data::{InputMode, Key, ModeInfo};
+use zellij_tile::data::{InputMode, Key, ModeInfo, Palette};
/// Handles the dispatching of [`Action`]s according to the current
/// [`InputMode`], and keep tracks of the current [`InputMode`].
@@ -48,7 +48,6 @@ impl InputHandler {
fn handle_input(&mut self) {
let mut err_ctx = OPENCALLS.with(|ctx| *ctx.borrow());
err_ctx.add_call(ContextType::StdinHandler);
- let keybinds = self.config.keybinds.clone();
let alt_left_bracket = vec![27, 91];
loop {
if self.should_exit {
@@ -60,14 +59,14 @@ impl InputHandler {
Ok((event, raw_bytes)) => match event {
termion::event::Event::Key(key) => {
let key = cast_termion_key(key);
- self.handle_key(&key, raw_bytes, &keybinds);
+ self.handle_key(&key, raw_bytes);
}
termion::event::Event::Unsupported(unsupported_key) => {
// we have to do this because of a bug in termion
// this should be a key event and not an unsupported event
if unsupported_key == alt_left_bracket {
let key = Key::Alt('[');
- self.handle_key(&key, raw_bytes, &keybinds);
+ self.handle_key(&key, raw_bytes);
}
}
termion::event::Event::Mouse(_) => {