mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
copy and paste work
This commit is contained in:
parent
8a5162cdb4
commit
7613730ada
4 changed files with 62 additions and 39 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue