summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-09-04 18:46:04 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-09-04 18:46:04 (GMT)
commit071f2bfac168d05a072d652dd9bc6c616b108490 (patch)
treef73c87e7641058fc3c32dbf57ff6082f7370a9c1 /win/tkWinX.c
parent171d0cc7bdd62bb56b8393cffba34ca588e47dcc (diff)
parent65756199380d45c088480fb055fb9b62a427a159 (diff)
downloadtk-071f2bfac168d05a072d652dd9bc6c616b108490.zip
tk-071f2bfac168d05a072d652dd9bc6c616b108490.tar.gz
tk-071f2bfac168d05a072d652dd9bc6c616b108490.tar.bz2
Fixed [2945130fff] for the right Control and Alt keys. WONTFIX the case of the right Shift key due to Windows plaftorm limitation.
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 99102cb..2dbc098 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;