You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
command palette improvements
This commit is contained in:
@@ -145,10 +145,11 @@ void BaseButton::on_action_event(Ref<InputEvent> p_event) {
|
||||
|
||||
if (status.press_attempt && status.pressing_inside) {
|
||||
if (toggle_mode) {
|
||||
bool is_pressed = p_event->is_pressed();
|
||||
if (Object::cast_to<InputEventShortcut>(*p_event)) {
|
||||
action_mode = ACTION_MODE_BUTTON_PRESS; // HACK.
|
||||
is_pressed = false;
|
||||
}
|
||||
if ((p_event->is_pressed() && action_mode == ACTION_MODE_BUTTON_PRESS) || (!p_event->is_pressed() && action_mode == ACTION_MODE_BUTTON_RELEASE)) {
|
||||
if ((is_pressed && action_mode == ACTION_MODE_BUTTON_PRESS) || (!is_pressed && action_mode == ACTION_MODE_BUTTON_RELEASE)) {
|
||||
if (action_mode == ACTION_MODE_BUTTON_PRESS) {
|
||||
status.press_attempt = false;
|
||||
status.pressing_inside = false;
|
||||
|
||||
Reference in New Issue
Block a user