From abcaa16c897678fa3fa4cda3f23660e4ca46b841 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 5 Apr 2020 21:44:07 +0800 Subject: ... --- include/cru/win/native/window.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cru/win/native') diff --git a/include/cru/win/native/window.hpp b/include/cru/win/native/window.hpp index a137463b..a27a3384 100644 --- a/include/cru/win/native/window.hpp +++ b/include/cru/win/native/window.hpp @@ -156,6 +156,11 @@ class WinNativeWindow : public WinNativeResource, public virtual INativeWindow { Event char_event_; Event native_message_event_; + + // WM_CHAR may be sent twice successively with two utf-16 code units of + // surrogate pair when character is from supplementary planes. This field is + // used to save the previous one. + wchar_t last_wm_char_event_wparam_; }; class WinNativeWindowResolver : public WinNativeResource, -- cgit v1.2.3