Add animation control buttons to document bar

This commit is contained in:
Keavon Chambers
2025-03-19 02:15:40 -07:00
parent 44694ff8d6
commit 08a4b69948
11 changed files with 91 additions and 17 deletions
@@ -432,7 +432,7 @@ pub fn input_mappings() -> Mapping {
entry!(KeyDown(Digit2); modifiers=[Alt], action_dispatch=DebugMessage::MessageContents),
// AnimationMessage
entry!(KeyDown(Space); modifiers=[Shift], action_dispatch=AnimationMessage::ToggleLivePreview),
entry!(KeyDown(ArrowLeft); modifiers=[Control], action_dispatch=AnimationMessage::ResetAnimation),
entry!(KeyDown(Home); modifiers=[Shift], action_dispatch=AnimationMessage::RestartAnimation),
];
let (mut key_up, mut key_down, mut key_up_no_repeat, mut key_down_no_repeat, mut double_click, mut wheel_scroll, mut pointer_move) = mappings;