Merge pull request #87479 from kitbdev/apply-ime

Fix TextEdit IME issues
This commit is contained in:
Rémi Verschelde committed 2024-02-13 17:23:55 +01:00
commit 48e2f43ccf
7 files changed
+112 -57

No files matched your search

+3
View File
@@ -1272,6 +1272,7 @@ void ScriptTextEditor::_gutter_clicked(int p_line, int p_gutter) {
void ScriptTextEditor::_edit_option(int p_op) {
CodeEdit *tx = code_editor->get_text_editor();
tx->apply_ime();
switch (p_op) {
case EDIT_UNDO: {
@@ -1962,6 +1963,8 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) {
}
if (create_menu) {
tx->apply_ime();
Point2i pos = tx->get_line_column_at_pos(local_pos);
int row = pos.y;
int col = pos.x;