diff options
author | cc_benny <cc_benny@noemail.net> | 2003-12-15 19:32:16 (GMT) |
---|---|---|
committer | cc_benny <cc_benny@noemail.net> | 2003-12-15 19:32:16 (GMT) |
commit | 571489a1b06770ca7595bbd6eee5cb2aa0bd7f32 (patch) | |
tree | 06e516dbf5b7658a7ecd1cd7689ede2814a7dbba /macosx | |
parent | 62f09ea3fb8c5a7ec94c874ff1fa525b036ffcaa (diff) | |
download | tk-571489a1b06770ca7595bbd6eee5cb2aa0bd7f32.zip tk-571489a1b06770ca7595bbd6eee5cb2aa0bd7f32.tar.gz tk-571489a1b06770ca7595bbd6eee5cb2aa0bd7f32.tar.bz2 |
* (TkpSetKeycodeAndState): Don't clobber xkey.state.
FossilOrigin-Name: 968aad62df188257ac846975a724527ab43a26ab
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXKeyboard.c | 4 |
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; } |