### Godot version

Godot 4.0 statble

### System information

Windows 10

### Issue description

TextEdit boundary wrapmode not works, it only removes the horizontal scrollbar

### Steps to reproduce

Add a textedit in editor, set  the wrap mode to boundary, type something.

### Minimal reproduction project

![image](https://user-images.githubusercontent.com/9168814/224538077-2efb4e67-8976-496e-9223-c460365ecc28.png)
![image](https://user-images.githubusercontent.com/9168814/224538084-af773b86-d73a-4e8b-9b66-a0fb4bde1168.png)

_THREAD_SAFE_METHOD_
	if (p_name == "shortcuts") {
		Array save_array;
		const HashMap<String, List<Ref<InputEvent>>> &builtin_list = InputMap::get_singleton()->get_builtins();
		for (const KeyValue<String, Ref<Shortcut>> &shortcut_definition : shortcuts) {
			Ref<Shortcut> sc = shortcut_definition.value;
			if (builtin_list.has(shortcut_definition.key)) {
				
				
				continue;
			}
			Array shortcut_events = sc->get_events();
			Dictionary dict;
			dict["name"] = shortcut_definition.key;
			dict["shortcuts"] = shortcut_events;
			if (!sc->has_meta("original")) {
				
				
				
				save_array.push_back(dict);
				continue;
			}
			Array original_events = sc->get_meta("original");
			bool is_same = Shortcut::is_event_array_equal(original_events, shortcut_events);
			if (is_same) {