aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPWindow.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPWindow.m b/Source/SPWindow.m
index 22f4f4ba..69d3e4a5 100644
--- a/Source/SPWindow.m
+++ b/Source/SPWindow.m
@@ -37,7 +37,8 @@
*/
- (void) sendEvent:(NSEvent *)theEvent
{
- if ([theEvent type] == NSKeyDown) {
+ if ([theEvent type] == NSKeyDown && [[theEvent characters] length]) {
+
unichar theCharacter = [[theEvent charactersIgnoringModifiers] characterAtIndex:0];
switch (theCharacter) {