mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
This commit is contained in:
@@ -2280,7 +2280,8 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
|
||||
bool is_command = k.is_valid() && k->get_command();
|
||||
if (p_event->is_action("ui_right") && p_event->is_pressed()) {
|
||||
|
||||
if (!cursor_can_exit_tree) accept_event();
|
||||
if (!cursor_can_exit_tree)
|
||||
accept_event();
|
||||
|
||||
if (!selected_item || select_mode == SELECT_ROW || selected_col > (columns.size() - 1)) {
|
||||
return;
|
||||
@@ -2297,7 +2298,8 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
|
||||
}
|
||||
} else if (p_event->is_action("ui_left") && p_event->is_pressed()) {
|
||||
|
||||
if (!cursor_can_exit_tree) accept_event();
|
||||
if (!cursor_can_exit_tree)
|
||||
accept_event();
|
||||
|
||||
if (!selected_item || select_mode == SELECT_ROW || selected_col < 0) {
|
||||
return;
|
||||
@@ -2316,19 +2318,22 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
|
||||
|
||||
} else if (p_event->is_action("ui_up") && p_event->is_pressed() && !is_command) {
|
||||
|
||||
if (!cursor_can_exit_tree) accept_event();
|
||||
if (!cursor_can_exit_tree)
|
||||
accept_event();
|
||||
|
||||
_go_up();
|
||||
|
||||
} else if (p_event->is_action("ui_down") && p_event->is_pressed() && !is_command) {
|
||||
|
||||
if (!cursor_can_exit_tree) accept_event();
|
||||
if (!cursor_can_exit_tree)
|
||||
accept_event();
|
||||
|
||||
_go_down();
|
||||
|
||||
} else if (p_event->is_action("ui_page_down") && p_event->is_pressed()) {
|
||||
|
||||
if (!cursor_can_exit_tree) accept_event();
|
||||
if (!cursor_can_exit_tree)
|
||||
accept_event();
|
||||
|
||||
TreeItem *next = NULL;
|
||||
if (!selected_item)
|
||||
@@ -2366,7 +2371,8 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
|
||||
ensure_cursor_is_visible();
|
||||
} else if (p_event->is_action("ui_page_up") && p_event->is_pressed()) {
|
||||
|
||||
if (!cursor_can_exit_tree) accept_event();
|
||||
if (!cursor_can_exit_tree)
|
||||
accept_event();
|
||||
|
||||
TreeItem *prev = NULL;
|
||||
if (!selected_item)
|
||||
|
||||
Reference in New Issue
Block a user