diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-23 23:57:18 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-23 23:57:18 +0000 |
| commit | 23df8e447a1e73b8e3536fbf9781f1aafcee2765 (patch) | |
| tree | eb462c458798ca3ff14f79f1e23d4d22c115f456 /src/common/errors.rs | |
| parent | Initial implementation of the update callback + upstream termion (diff) | |
| download | sl0ppij-23df8e447a1e73b8e3536fbf9781f1aafcee2765.tar.gz sl0ppij-23df8e447a1e73b8e3536fbf9781f1aafcee2765.tar.xz sl0ppij-23df8e447a1e73b8e3536fbf9781f1aafcee2765.zip | |
Move most key handling to the update() + event system
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index 11d13c7e..b12a57a1 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -281,7 +281,6 @@ pub enum PluginContext { Update, Render, Input, - GlobalInput, Unload, Quit, Tabs, @@ -291,10 +290,9 @@ impl From<&PluginInstruction> for PluginContext { fn from(plugin_instruction: &PluginInstruction) -> Self { match *plugin_instruction { PluginInstruction::Load(..) => PluginContext::Load, - PluginInstruction::Update(_) => PluginContext::Update, + PluginInstruction::Update(..) => PluginContext::Update, PluginInstruction::Render(..) => PluginContext::Render, PluginInstruction::Input(..) => PluginContext::Input, - PluginInstruction::GlobalInput(_) => PluginContext::GlobalInput, PluginInstruction::Unload(_) => PluginContext::Unload, PluginInstruction::Quit => PluginContext::Quit, PluginInstruction::UpdateTabs(..) => PluginContext::Tabs, |
