diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-13 17:23:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-13 17:23:55 +0100 |
commit | 48e2f43ccf1704973d3e398918e1e990902aaa42 (patch) | |
tree | 1fdedc76d94c5358d3a95f062badaf0075271ead /editor/plugins/text_shader_editor.cpp | |
parent | 937fa7b04a35343cb2fac907af666607b5b85b41 (diff) | |
parent | a6af442b05b38ed3baa716ec0a73862a024e141a (diff) | |
download | redot-engine-48e2f43ccf1704973d3e398918e1e990902aaa42.tar.gz |
Merge pull request #87479 from kitbdev/apply-ime
Fix TextEdit IME issues
Diffstat (limited to 'editor/plugins/text_shader_editor.cpp')
-rw-r--r-- | editor/plugins/text_shader_editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/text_shader_editor.cpp b/editor/plugins/text_shader_editor.cpp index fe8fb79c56..ea200419f6 100644 --- a/editor/plugins/text_shader_editor.cpp +++ b/editor/plugins/text_shader_editor.cpp @@ -628,6 +628,8 @@ ShaderTextEditor::ShaderTextEditor() { /*** SCRIPT EDITOR ******/ void TextShaderEditor::_menu_option(int p_option) { + shader_editor->get_text_editor()->apply_ime(); + switch (p_option) { case EDIT_UNDO: { shader_editor->get_text_editor()->undo(); @@ -978,6 +980,8 @@ void TextShaderEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) { if (mb->get_button_index() == MouseButton::RIGHT && mb->is_pressed()) { CodeEdit *tx = shader_editor->get_text_editor(); + tx->apply_ime(); + Point2i pos = tx->get_line_column_at_pos(mb->get_global_position() - tx->get_global_position()); int row = pos.y; int col = pos.x; |