summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorcc_benny <cc_benny>2003-12-15 19:32:17 (GMT)
committercc_benny <cc_benny>2003-12-15 19:32:17 (GMT)
commit7f8895ca18b1eb8b2de203c75bab2d4d2db809c9 (patch)
tree06e516dbf5b7658a7ecd1cd7689ede2814a7dbba /macosx
parent843d670bcd84588ca1c76dc9fdaf61d98b7ed3b4 (diff)
downloadtk-7f8895ca18b1eb8b2de203c75bab2d4d2db809c9.zip
tk-7f8895ca18b1eb8b2de203c75bab2d4d2db809c9.tar.gz
tk-7f8895ca18b1eb8b2de203c75bab2d4d2db809c9.tar.bz2
* (TkpSetKeycodeAndState): Don't clobber xkey.state.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXKeyboard.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/tkMacOSXKeyboard.c b/macosx/tkMacOSXKeyboard.c
index 8a3caa2..7832fab 100644
--- a/macosx/tkMacOSXKeyboard.c
+++ b/macosx/tkMacOSXKeyboard.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXKeyboard.c,v 1.11 2003/12/15 18:48:07 cc_benny Exp $
+ * RCS: @(#) $Id: tkMacOSXKeyboard.c,v 1.12 2003/12/15 19:32:17 cc_benny Exp $
*/
#include "tkInt.h"
@@ -604,7 +604,6 @@ TkpSetKeycodeAndState(
{
if (keysym == NoSymbol) {
eventPtr->xkey.keycode = 0;
- eventPtr->xkey.state = 0;
} else {
Display *display = Tk_Display(tkwin);
int macKeycode = XKeysymToMacKeycode(display, keysym);
@@ -620,7 +619,6 @@ TkpSetKeycodeAndState(
}
eventPtr->xkey.keycode |= (macKeycode & MAC_KEYCODE_MASK) << 16;
- eventPtr->xkey.state = 0;
if (shiftKey & macKeycode) {
eventPtr->xkey.state |= ShiftMask;
}