You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This method disables the ESC handling of the TextBox as long as the user has used IME.
240
-
// This is because IME users often use ESC to cancel composition, and even if currently the composition is empty,
212
+
// This method disables the ESC handling of the TextBox as long as the user has ever used IME.
213
+
// This is because IME users often use ESC to cancel composition. Even if currently the composition is empty,
241
214
// the user still expects ESC to cancel composition rather than deleting the whole sentence.
242
215
// For example, the user might mistakenly hit ESC key twice to cancel composition -- deleting the whole sentence is definitely a heavy punishment for such a small mistake.
243
216
244
-
// Note: "!string.IsNullOrEmpty(Composition) =>IMEEventReceived" should hold, but just in case
0 commit comments