Skip to content

Commit

Permalink
Fix colorPicker virtual keyboard popup on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaxerror247 committed Oct 4, 2024
1 parent 32239d4 commit c912f00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scene/gui/color_picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,9 @@ void ColorPickerButton::pressed() {
float v_offset = show_above ? -minsize.y : get_size().y;
popup->set_position(get_screen_position() + Vector2(h_offset, v_offset));
popup->popup();
picker->set_focus_on_line_edit();
if (DisplayServer::get_singleton()->has_hardware_keyboard()) {
picker->set_focus_on_line_edit();
}
}

void ColorPickerButton::_notification(int p_what) {
Expand Down

0 comments on commit c912f00

Please sign in to comment.