copy and paste work

This commit is contained in:
Anton-4 2021-01-29 15:04:59 +01:00
parent 8a5162cdb4
commit 7613730ada
4 changed files with 62 additions and 39 deletions

View file

@ -225,12 +225,16 @@ fn run_event_loop(file_path_opt: Option<&Path>) -> Result<(), Box<dyn Error>> {
if let Some(virtual_keycode) = input.virtual_keycode {
if let Some(ref mut ed_model) = app_model.ed_model_opt {
if ed_model.has_focus {
keyboard_input::handle_keydown(
let keydown_res = keyboard_input::handle_keydown(
input.state,
virtual_keycode,
keyboard_modifiers,
&mut app_model,
);
if let Err(e) = keydown_res {
print_err(&e)
}
}
}
}