From 571489a1b06770ca7595bbd6eee5cb2aa0bd7f32 Mon Sep 17 00:00:00 2001 From: cc_benny Date: Mon, 15 Dec 2003 19:32:16 +0000 Subject: * (TkpSetKeycodeAndState): Don't clobber xkey.state. FossilOrigin-Name: 968aad62df188257ac846975a724527ab43a26ab --- 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