From 82c9827989cef9342a42496e40c40ff8f2531448 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 19 Feb 2011 20:38:12 +0000 Subject: - Fix exceptions caused by uncombined accents/special characters, addressing the exception for Issue #987 (http://spbug.com/l/1948) --- Source/SPWindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPWindow.m') diff --git a/Source/SPWindow.m b/Source/SPWindow.m index 58f38d0b..8f2354db 100644 --- a/Source/SPWindow.m +++ b/Source/SPWindow.m @@ -38,7 +38,7 @@ - (void) sendEvent:(NSEvent *)theEvent { - if ([theEvent type] == NSKeyDown && [[theEvent characters] length]) { + if ([theEvent type] == NSKeyDown && [[theEvent charactersIgnoringModifiers] length]) { unichar theCharacter = [[theEvent charactersIgnoringModifiers] characterAtIndex:0]; -- cgit v1.2.3