We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9ebf7 commit 88185eeCopy full SHA for 88185ee
src/TSMapEditor/UI/IME/IMEHandler.cs
@@ -78,8 +78,16 @@ protected virtual void OnIMETextInput(char character)
78
79
if (IMEFocus != null)
80
{
81
- TextBoxHandleChatInputCallbacks.TryGetValue(IMEFocus, out var handleChatInput);
82
- handleChatInput?.Invoke(character);
+ // Handle ESC
+ if (character == 27 && CompositionEmpty)
83
+ {
84
+ IMEFocus.Text = string.Empty;
85
+ }
86
+ else
87
88
+ TextBoxHandleChatInputCallbacks.TryGetValue(IMEFocus, out var handleChatInput);
89
+ handleChatInput?.Invoke(character);
90
91
}
92
93
0 commit comments