Skip to content

Commit cccf916

Browse files
committed
Fix tabs input on left shoulder not focusing elements properly
1 parent 105d1d9 commit cccf916

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scenes/root/Root.tscn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ content_scale_aspect = 4
6262
unique_name_in_owner = true
6363
position = Vector2i(0, 648)
6464
size = Vector2i(1152, 300)
65+
visible = false
6566
always_on_top = true
6667
theme = ExtResource("5")
6768
script = ExtResource("2")

source/utils/TabContainerHandler.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func _input(event):
3838
(_focused and event.is_action_pressed("ui_left")):
3939
if is_key_event_on_text(event):
4040
return
41+
get_viewport().set_input_as_handled()
4142
if tab.current_tab > 0:
4243
tab.current_tab -= 1
4344
else:

0 commit comments

Comments
 (0)