summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyEvent.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-13 11:07:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-13 11:07:44 (GMT)
commitf8e123a7ce6504a4682cc507edae2eb8b696621f (patch)
treec52c7c579a8675b92985d44aa7daf5695c02f106 /macosx/tkMacOSXKeyEvent.c
parent4658a19f9128ef93ebd4e5052547f4cf2176516e (diff)
parent873edb3321e09048e82e52ad58e133216bd2a10b (diff)
downloadtk-f8e123a7ce6504a4682cc507edae2eb8b696621f.zip
tk-f8e123a7ce6504a4682cc507edae2eb8b696621f.tar.gz
tk-f8e123a7ce6504a4682cc507edae2eb8b696621f.tar.bz2
Merge 8.7
Diffstat (limited to 'macosx/tkMacOSXKeyEvent.c')
-rw-r--r--macosx/tkMacOSXKeyEvent.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c
index 5ed6888..2b18a4d 100644
--- a/macosx/tkMacOSXKeyEvent.c
+++ b/macosx/tkMacOSXKeyEvent.c
@@ -255,12 +255,11 @@ static NSUInteger textInputModifiers;
*/
if (type == NSKeyDown && [theEvent isARepeat]) {
+
xEvent.xany.type = KeyRelease;
Tk_QueueWindowEvent(&xEvent, TCL_QUEUE_TAIL);
xEvent.xany.type = KeyPress;
}
- if (xEvent.xany.type == KeyPress) {
- }
Tk_QueueWindowEvent(&xEvent, TCL_QUEUE_TAIL);
return theEvent;
}
@@ -268,14 +267,8 @@ static NSUInteger textInputModifiers;
@implementation TKContentView
-
--(id)init {
- self = [super init];
- if (self) {
- _needsRedisplay = NO;
- }
- return self;
-}
+@synthesize tkDirtyRect = _tkDirtyRect;
+@synthesize tkNeedsDisplay = _tkNeedsDisplay;;
/*
* Implementation of the NSTextInputClient protocol.
@@ -562,7 +555,6 @@ static NSUInteger textInputModifiers;
}
/* End of NSTextInputClient implementation. */
-@synthesize needsRedisplay = _needsRedisplay;
@end