summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyEvent.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-07-06 20:29:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-07-06 20:29:21 (GMT)
commit4cb90496fafa54e8aaa26a86cbceafe3fb992320 (patch)
tree318369a6546c015a03a943a2dd4174c27c1a38d6 /macosx/tkMacOSXKeyEvent.c
parent1c1ba29d82eafab3ad9a7d2fc54a06da5ca531b6 (diff)
downloadtk-4cb90496fafa54e8aaa26a86cbceafe3fb992320.zip
tk-4cb90496fafa54e8aaa26a86cbceafe3fb992320.tar.gz
tk-4cb90496fafa54e8aaa26a86cbceafe3fb992320.tar.bz2
More marking of files as Objective-C.
Diffstat (limited to 'macosx/tkMacOSXKeyEvent.c')
-rw-r--r--macosx/tkMacOSXKeyEvent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c
index 6e16583..6d4a367 100644
--- a/macosx/tkMacOSXKeyEvent.c
+++ b/macosx/tkMacOSXKeyEvent.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXKeyEvent.c,v 1.27 2009/06/29 14:35:01 das Exp $
+ * RCS: @(#) $Id: tkMacOSXKeyEvent.c,v 1.28 2009/07/06 20:29:21 dkf Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -31,7 +31,8 @@ static NSModalSession modalSession = NULL;
#pragma mark TKApplication(TKKeyEvent)
@implementation TKApplication(TKKeyEvent)
-- (NSEvent *)tkProcessKeyEvent:(NSEvent *)theEvent {
+- (NSEvent *) tkProcessKeyEvent: (NSEvent *) theEvent
+{
#ifdef TK_MAC_DEBUG_EVENTS
TKLog(@"-[%@(%p) %s] %@", [self class], self, _cmd, theEvent);
#endif
@@ -43,7 +44,6 @@ static NSModalSession modalSession = NULL;
NSString *characters = nil, *charactersIgnoringModifiers = nil;
static NSUInteger savedModifiers = 0;
-
switch (type) {
case NSKeyUp:
case NSKeyDown:
@@ -61,7 +61,6 @@ static NSModalSession modalSession = NULL;
default:
return theEvent;
- break;
}
unsigned int state = 0;
@@ -107,6 +106,7 @@ static NSModalSession modalSession = NULL;
}
XEvent xEvent;
+
xEvent.xany.serial = LastKnownRequestProcessed(Tk_Display(tkwin));
xEvent.xany.send_event = false;
xEvent.xany.display = Tk_Display(tkwin);
@@ -343,7 +343,7 @@ Tk_SetCaretPos(
/*
* Local Variables:
- * mode: c
+ * mode: objc
* c-basic-offset: 4
* fill-column: 79
* coding: utf-8