formatting

macos-click-through
Keith Simmons 5 years ago
parent cebcaa86bc
commit 18d37134c5

@ -21,7 +21,7 @@ pub enum UiCommand {
Drag(u32, u32),
FocusLost,
FocusGained,
Quit
Quit,
}
impl UiCommand {
@ -62,8 +62,7 @@ impl UiCommand {
.await
.expect("Focus Gained Failed"),
UiCommand::Quit => {
nvim.command("qa!")
.await.ok(); // Ignoring result as it won't succeed since the app closed.
nvim.command("qa!").await.ok(); // Ignoring result as it won't succeed since the app closed.
}
}
}

@ -391,7 +391,10 @@ pub fn ui_loop() {
for event in event_pump.poll_iter() {
match event {
Event::Quit { .. } => window.handle_quit(),
Event::KeyDown { keycode: received_keycode, .. } => {
Event::KeyDown {
keycode: received_keycode,
..
} => {
keycode = received_keycode;
}
Event::TextInput { text, .. } => keytext = Some(text),

Loading…
Cancel
Save