|
@@ -3559,7 +3559,7 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
|
|
Ref<InputEventKey> k = p_event;
|
|
Ref<InputEventKey> k = p_event;
|
|
|
|
|
|
bool is_command = k.is_valid() && k->is_command_or_control_pressed();
|
|
bool is_command = k.is_valid() && k->is_command_or_control_pressed();
|
|
- if (p_event->is_action("ui_right") && p_event->is_pressed()) {
|
|
|
|
|
|
+ if (p_event->is_action(cache.rtl ? "ui_left" : "ui_right") && p_event->is_pressed()) {
|
|
if (!cursor_can_exit_tree) {
|
|
if (!cursor_can_exit_tree) {
|
|
accept_event();
|
|
accept_event();
|
|
}
|
|
}
|
|
@@ -3577,7 +3577,7 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
|
|
} else {
|
|
} else {
|
|
_go_down();
|
|
_go_down();
|
|
}
|
|
}
|
|
- } else if (p_event->is_action("ui_left") && p_event->is_pressed()) {
|
|
|
|
|
|
+ } else if (p_event->is_action(cache.rtl ? "ui_right" : "ui_left") && p_event->is_pressed()) {
|
|
if (!cursor_can_exit_tree) {
|
|
if (!cursor_can_exit_tree) {
|
|
accept_event();
|
|
accept_event();
|
|
}
|
|
}
|