-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
Creating types like TextEvent
and KeyboardEvent
is kind of cumbersome. In Masonry's unit tests, the full expression ends up looking like:
let event = MyTextEvent::Keyboard(KeyboardEvent {
key: Key::Named(NamedKey::Tab),
..Default::default()
})
Some quality-of-life feature I'd like:
impl From<String> for Key
impl From<NamedKey> for Key
KeyboardEvent::key_down()
andKeyboardEvent::key_up()
constructors.
Thanks for your work!