### Godot version

v4.0.beta15.official [4fa6edc88] and v4.0.beta.custom_build [1bf7b84fb]

### System information

openSUSE Tumbleweed 20230125, KDE Plasma 5.26.5, Wayland session

### Issue description

https://user-images.githubusercontent.com/110809639/214688115-ce2c8f95-3849-4ee5-b6be-f8e58dbd8036.mp4

It's not possible to rename any node while using wayland session under my linux distro. Using Godot 4 beta15. Tried changing keyboard layout and same result. If I swith to X11 session then it works. Also beta14 doesn't have this problem with wayland session.

### Steps to reproduce

Literally try to rename any node under wayland session with beta15

### Minimal reproduction project

n/a
Size2 minsize = theme_cache.panel_style->get_minimum_size(); 
	minsize.x += scroll_container->get_v_scroll_bar()->get_size().width * 2; 
	float max_w = 0.0;
	float icon_w = 0.0;
	int check_w = MAX(theme_cache.checked->get_width(), theme_cache.radio_checked->get_width()) + theme_cache.h_separation;
	int accel_max_w = 0;
	bool has_check = false;
	for (int i = 0; i < items.size(); i++) {
		Size2 item_size;
		Size2 icon_size = items[i].get_icon_size();
		item_size.height = _get_item_height(i);
		icon_w = MAX(icon_size.width, icon_w);
		item_size.width += items[i].indent * theme_cache.indent;
		if (items[i].checkable_type && !items[i].separator) {
			has_check = true;
		}
		item_size.width += items[i].text_buf->get_size().x;
		item_size.height += theme_cache.v_separation;
		if (items[i].accel != Key::NONE || (items[i].shortcut.is_valid() && items[i].shortcut->has_valid_event())) {
			int accel_w = theme_cache.h_separation * 2;
			accel_w += items[i].accel_text_buf->get_size().x;
			accel_max_w = MAX(accel_w, accel_max_w);
		}
		if (!items[i].submenu.is_empty()) {
			item_size.width += theme_cache.submenu->get_width();
		}
		max_w = MAX(max_w, item_size.width);
		minsize.height += item_size.height;
	}