diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-13 11:07:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-13 11:07:44 (GMT) |
commit | f8e123a7ce6504a4682cc507edae2eb8b696621f (patch) | |
tree | c52c7c579a8675b92985d44aa7daf5695c02f106 /macosx/tkMacOSXKeyEvent.c | |
parent | 4658a19f9128ef93ebd4e5052547f4cf2176516e (diff) | |
parent | 873edb3321e09048e82e52ad58e133216bd2a10b (diff) | |
download | tk-f8e123a7ce6504a4682cc507edae2eb8b696621f.zip tk-f8e123a7ce6504a4682cc507edae2eb8b696621f.tar.gz tk-f8e123a7ce6504a4682cc507edae2eb8b696621f.tar.bz2 |
Merge 8.7
Diffstat (limited to 'macosx/tkMacOSXKeyEvent.c')
-rw-r--r-- | macosx/tkMacOSXKeyEvent.c | 14 |
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 |