aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input/handler.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-09 21:51:17 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-09 21:51:17 +0000
commite9ab81850e61b9b5e9c1f25d79cafd8378bda600 (patch)
tree0e73c8c2ea64594d84da2d7cdb086734a20634b5 /src/common/input/handler.rs
parentDeduplicate the WASM interface structs (diff)
downloadsl0ppij-e9ab81850e61b9b5e9c1f25d79cafd8378bda600.tar.gz
sl0ppij-e9ab81850e61b9b5e9c1f25d79cafd8378bda600.tar.xz
sl0ppij-e9ab81850e61b9b5e9c1f25d79cafd8378bda600.zip
Add event subscription tracking
Diffstat (limited to 'src/common/input/handler.rs')
-rw-r--r--src/common/input/handler.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index e498fbb6..40d53d5d 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -7,7 +7,7 @@ use crate::errors::ContextType;
use crate::os_input_output::OsApi;
use crate::pty_bus::PtyInstruction;
use crate::screen::ScreenInstruction;
-use crate::wasm_vm::{EventType, PluginInputType, PluginInstruction};
+use crate::wasm_vm::{NaughtyEventType, PluginInputType, PluginInstruction};
use crate::CommandIsExecuting;
use termion::input::TermReadEventsAndRaw;
@@ -234,7 +234,7 @@ impl InputHandler {
Action::TabNameInput(c) => {
self.send_plugin_instructions
.send(PluginInstruction::Input(
- PluginInputType::Event(EventType::Tab),
+ PluginInputType::Event(NaughtyEventType::Tab),
c.clone(),
))
.unwrap();
@@ -245,7 +245,7 @@ impl InputHandler {
Action::SaveTabName => {
self.send_plugin_instructions
.send(PluginInstruction::Input(
- PluginInputType::Event(EventType::Tab),
+ PluginInputType::Event(NaughtyEventType::Tab),
vec![b'\n'],
))
.unwrap();