Remove the component parameter from GenericWindow::process_key_input

This commit is contained in:
Simon Hausmann 2020-11-11 19:16:26 +01:00
parent 516680ad5d
commit a2dadf8fe8
6 changed files with 36 additions and 65 deletions

View file

@ -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))