Merge pull request #113416 from Calinou/editor-animation-use-physical-shortcuts

Use physical key shortcuts for the animation editor's play/pause buttons
This commit is contained in:
Rémi Verschelde 2025-12-02 14:17:23 +01:00
commit 5a41bb884a
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2293,11 +2293,11 @@ void fragment() {
)");
RS::get_singleton()->material_set_shader(onion.capture.material->get_rid(), onion.capture.shader->get_rid());
ED_SHORTCUT("animation_editor/stop_animation", TTRC("Pause/Stop Animation"), Key::S);
ED_SHORTCUT("animation_editor/play_animation", TTRC("Play Animation"), Key::D);
ED_SHORTCUT("animation_editor/play_animation_backwards", TTRC("Play Animation Backwards"), Key::A);
ED_SHORTCUT("animation_editor/play_animation_from_start", TTRC("Play Animation from Start"), KeyModifierMask::SHIFT + Key::D);
ED_SHORTCUT("animation_editor/play_animation_from_end", TTRC("Play Animation Backwards from End"), KeyModifierMask::SHIFT + Key::A);
ED_SHORTCUT("animation_editor/stop_animation", TTRC("Pause/Stop Animation"), Key::S, true);
ED_SHORTCUT("animation_editor/play_animation", TTRC("Play Animation"), Key::D, true);
ED_SHORTCUT("animation_editor/play_animation_backwards", TTRC("Play Animation Backwards"), Key::A, true);
ED_SHORTCUT("animation_editor/play_animation_from_start", TTRC("Play Animation from Start"), KeyModifierMask::SHIFT + Key::D, true);
ED_SHORTCUT("animation_editor/play_animation_from_end", TTRC("Play Animation Backwards from End"), KeyModifierMask::SHIFT + Key::A, true);
}
AnimationPlayerEditor::~AnimationPlayerEditor() {