summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-08-11 12:12:27 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-08-11 12:12:27 (GMT)
commit6a504b8f51e5d1e036fc2c4ca45d5f5b0f05fe03 (patch)
tree8e090f6f737b94525091f29ff5ce27b78dd86e24 /win/tkWinX.c
parentb2dd912bb8b15178f37c18a21ad93979571f3441 (diff)
downloadtk-6a504b8f51e5d1e036fc2c4ca45d5f5b0f05fe03.zip
tk-6a504b8f51e5d1e036fc2c4ca45d5f5b0f05fe03.tar.gz
tk-6a504b8f51e5d1e036fc2c4ca45d5f5b0f05fe03.tar.bz2
Consider the Extended flag for both KeyPress and KeyRelease events coming from the extended (keypad) keys. I can't see why implementation of TIP #158 [b8333852a2] considered the extended flag only for KeyPress, and forced clearing it in the state integer for KeyRelease.
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r--win/tkWinX.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 6c44059..567b281 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -1321,11 +1321,7 @@ GetState(
state &= ~mask;
}
if (HIWORD(lParam) & KF_EXTENDED) {
- if (message == WM_SYSKEYDOWN || message == WM_KEYDOWN) {
- state |= EXTENDED_MASK;
- } else {
- state &= ~EXTENDED_MASK;
- }
+ state |= EXTENDED_MASK;
}
}
return state;