You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Selectively apply FOCUS_ACCESSIBILITY to the Labels instead of setting it by default.
This commit is contained in:
@@ -5769,6 +5769,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
|
||||
info_panel->hide();
|
||||
|
||||
info_label = memnew(Label);
|
||||
info_label->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
info_panel->add_child(info_label);
|
||||
|
||||
cinema_label = memnew(Label);
|
||||
@@ -5805,6 +5806,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
|
||||
surface->add_child(preview_material_label);
|
||||
|
||||
preview_material_label_desc = memnew(Label);
|
||||
preview_material_label_desc->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
preview_material_label_desc->set_anchors_and_offsets_preset(LayoutPreset::PRESET_BOTTOM_LEFT);
|
||||
preview_material_label_desc->set_offset(Side::SIDE_TOP, -50 * EDSCALE);
|
||||
Key key = (OS::get_singleton()->has_feature("macos") || OS::get_singleton()->has_feature("web_macos") || OS::get_singleton()->has_feature("web_ios")) ? Key::META : Key::CTRL;
|
||||
|
||||
Reference in New Issue
Block a user