From 66698019d61446a7f763b7f503f0e64e887e8515 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 2 Dec 2025 01:11:05 +0100 Subject: [PATCH] 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. --- editor/animation/animation_player_editor_plugin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/animation/animation_player_editor_plugin.cpp b/editor/animation/animation_player_editor_plugin.cpp index ff9dd6738a9..591da81badc 100644 --- a/editor/animation/animation_player_editor_plugin.cpp +++ b/editor/animation/animation_player_editor_plugin.cpp @@ -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() {