diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-13 15:24:39 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-13 15:24:39 +0200 |
commit | 2ffb6096584fc8a91e7b00da98f18c78ad040505 (patch) | |
tree | 85f6ba49bed141199a79bb3da7327a1a08bb80c2 /scene/gui/slider.cpp | |
parent | 17db8be33cc61ff61d06ea94edaa98cbac14ae98 (diff) | |
parent | b322b3d649ba586dd111ae62b91ded4cb49d9fdf (diff) |
Merge pull request #66337 from EricEzaM/sprite-frames
Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
Diffstat (limited to 'scene/gui/slider.cpp')
-rw-r--r-- | scene/gui/slider.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/slider.cpp b/scene/gui/slider.cpp index a7d44c0f3c..6cbacf0dd3 100644 --- a/scene/gui/slider.cpp +++ b/scene/gui/slider.cpp @@ -138,10 +138,10 @@ void Slider::gui_input(const Ref<InputEvent> &p_event) { } set_value(get_value() - (custom_step >= 0 ? custom_step : get_step())); accept_event(); - } else if (p_event->is_action("ui_home") && p_event->is_pressed()) { + } else if (p_event->is_action("ui_home", true) && p_event->is_pressed()) { set_value(get_min()); accept_event(); - } else if (p_event->is_action("ui_end") && p_event->is_pressed()) { + } else if (p_event->is_action("ui_end", true) && p_event->is_pressed()) { set_value(get_max()); accept_event(); } |