Add support for the initial_focus synthetic property

Setting it will translate to a set_focus_item call in the constructor.

This implements parts of #55
This commit is contained in:
Simon Hausmann 2020-09-25 15:15:17 +02:00
parent 2050f08f1e
commit 9ad8968529
22 changed files with 542 additions and 36 deletions

View file

@ -184,7 +184,8 @@ fn to_eval_value<'cx>(
| Type::Signal { .. }
| Type::Easing
| Type::Component(_) // The struct case is handled before
| Type::PathElements => cx.throw_error("Cannot convert to a Sixtyfps property value"),
| Type::PathElements
| Type::ElementReference => cx.throw_error("Cannot convert to a Sixtyfps property value"),
}
}