Use physical key shortcuts for the animation editor's play/pause buttons

These follow a (W)ASD pattern, so these should be translated to e.g.
(Z)QSD on AZERTY keyboards to ensure similar usability.
This commit is contained in:
Hugo Locurcio 2025-12-02 01:11:05 +01:00
parent f5918a9d35
commit 66698019d6
No known key found for this signature in database
GPG key ID: 46ACE49F61685096

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() {