diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-07-05 21:21:52 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-07-05 21:21:52 (GMT) |
commit | e8809da1d2cb4e46c946ed54c986438049390981 (patch) | |
tree | 742347712a28b490b7306c39cf5d3fe022eee0b8 /win/tkWinX.c | |
parent | d40c78419c8a83e6390e95cc7599f770661548f8 (diff) | |
download | tk-e8809da1d2cb4e46c946ed54c986438049390981.zip tk-e8809da1d2cb4e46c946ed54c986438049390981.tar.gz tk-e8809da1d2cb4e46c946ed54c986438049390981.tar.bz2 |
TIP#158 implementation; keypad keys on Win are now distinguishable.
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r-- | win/tkWinX.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index bd8e75c..60c9f3f 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinX.c,v 1.30 2004/05/03 22:40:30 hobbs Exp $ + * RCS: @(#) $Id: tkWinX.c,v 1.31 2004/07/05 21:21:53 dkf Exp $ */ #include "tkWinInt.h" @@ -1176,6 +1176,13 @@ GetState(message, wParam, lParam) } else { state &= ~mask; } + if (HIWORD(lParam) & KF_EXTENDED) { + if (message == WM_SYSKEYDOWN || message == WM_KEYDOWN) { + state |= EXTENDED_MASK; + } else { + state &= ~EXTENDED_MASK; + } + } } return state; } |