prevent ignoring wrong character (bug #1113)

git-svn-id: trunk@7563 -
This commit is contained in:
micha 2005-08-24 21:10:27 +00:00
parent 18a6999481
commit 3fc488b817

View File

@ -1510,6 +1510,10 @@ Begin
and (WindowInfo <> @DefaultWindowInfo)
and (PLMsg^.Result <> 0) then
WindowInfo^.ignoreNextChar := true;
// stop ignoring if KEYUP has come by (not all keys generate CHAR)
if ((Msg = WM_KEYUP) or (Msg = WM_SYSKEYUP))
and (WindowInfo <> @DefaultWindowInfo) then
WindowInfo^.ignoreNextChar := false;
{ LMMouseEvent and LMInsertText have no Result field }