mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Remove the component parameter from GenericWindow::process_key_input
This commit is contained in:
parent
516680ad5d
commit
a2dadf8fe8
6 changed files with 36 additions and 65 deletions
|
@ -454,7 +454,7 @@ declare_types! {
|
|||
let comp = this.borrow(&lock).0.clone();
|
||||
let component = comp.ok_or(()).or_else(|()| cx.throw_error("Invalid type"))?;
|
||||
run_scoped(&mut cx,this.downcast().unwrap(), || {
|
||||
sixtyfps_corelib::tests::send_keyboard_string_sequence(component.borrow(), &sequence.into(), &component.window());
|
||||
sixtyfps_corelib::tests::send_keyboard_string_sequence(&sequence.into(), &component.window());
|
||||
Ok(())
|
||||
})?;
|
||||
Ok(JsUndefined::new().as_value(&mut cx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue