Răsfoiți Sursa

use exact match when checking focus next / previous

(cherry picked from commit c27b05febbc4d3027f9bba304dc90b78c9b4fc0d)
Nathan Franke 3 ani în urmă
părinte
comite
4ef3985dc3
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      scene/main/viewport.cpp

+ 2 - 2
scene/main/viewport.cpp

@@ -2454,11 +2454,11 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
 					next = from->_get_focus_neighbour(MARGIN_BOTTOM);
 				}
 			} else {
-				if (p_event->is_action_pressed("ui_focus_next", true)) {
+				if (p_event->is_action_pressed("ui_focus_next", true, true)) {
 					next = from->find_next_valid_focus();
 				}
 
-				if (p_event->is_action_pressed("ui_focus_prev", true)) {
+				if (p_event->is_action_pressed("ui_focus_prev", true, true)) {
 					next = from->find_prev_valid_focus();
 				}