From 7f8895ca18b1eb8b2de203c75bab2d4d2db809c9 Mon Sep 17 00:00:00 2001 From: cc_benny Date: Mon, 15 Dec 2003 19:32:17 +0000 Subject: * (TkpSetKeycodeAndState): Don't clobber xkey.state. --- macosx/tkMacOSXKeyboard.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- cgit v0.12