mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 03:36:41 +01:00
This commit is contained in:
parent
4d4c470a81
commit
50728729b7
8 changed files with 232 additions and 335 deletions
|
|
@ -2,15 +2,15 @@ use crate::*;
|
|||
#[derive(Debug)]
|
||||
pub enum AppCommand {}
|
||||
handle!(TuiIn:|self: App, input|{
|
||||
panic!("wat: {:?}", self.profile);
|
||||
for keys in self.profile.mode.keys.iter() {
|
||||
panic!("wat: {:?}", self.mode);
|
||||
for keys in self.mode.keys.iter() {
|
||||
panic!("{keys} {:?}", self.config.binds.read().unwrap());
|
||||
if let Some(binding) = self.config.binds.read().unwrap().get(keys.as_ref()) {
|
||||
panic!("{binding:?}");
|
||||
}
|
||||
}
|
||||
Ok(None)
|
||||
//Ok(if let Some(binding) = self.profile.as_ref()
|
||||
//Ok(if let Some(binding) = self.mode.as_ref()
|
||||
//.map(|c|c.keys.dispatch(input.event())).flatten()
|
||||
//{
|
||||
//let binding = binding.clone();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue