mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Apply TextEdit IME on most actions
This commit is contained in:
parent
fa48a51183
commit
a6af442b05
7 changed files with 112 additions and 57 deletions
|
@ -1270,6 +1270,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: {
|
||||
|
@ -1960,6 +1961,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue