mvp keycodes
parent
ca00bb9bc6
commit
ef44fa5d51
13
src/gui.rs
13
src/gui.rs
|
|
@ -150,7 +150,18 @@ impl Application for Main {
|
|||
_ => {},
|
||||
}
|
||||
},
|
||||
Message::EventOccurred(_) => {},
|
||||
Message::EventOccurred(event) => {
|
||||
match event {
|
||||
iced::event::Event::Keyboard(keyboard::Event::KeyPressed{
|
||||
key_code,
|
||||
modifiers: _,
|
||||
..
|
||||
}) => {
|
||||
println!("pushed {}", key_code);
|
||||
},
|
||||
_ => {},
|
||||
}
|
||||
},
|
||||
_ => {
|
||||
self.configuring = Some(msg.clone());
|
||||
self.ntfy = format!("push a key to bind to {:?}", msg.clone());
|
||||
|
|
|
|||
Loading…
Reference in New Issue