aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindow.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-25 06:19:04 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-25 06:19:04 +0000
commit2f62978adabc201518816ca23a69ab7e7b6cb264 (patch)
tree3c6baab92a0c6e363eb4efbb8befdcacf68011ba /Source/SPWindow.m
parentc9d3c7688931140090744b29e23c0225259c70b9 (diff)
downloadsequelpro-2f62978adabc201518816ca23a69ab7e7b6cb264.tar.gz
sequelpro-2f62978adabc201518816ca23a69ab7e7b6cb264.tar.bz2
sequelpro-2f62978adabc201518816ca23a69ab7e7b6cb264.zip
• check the character length of the keyDown event
- addresses http://log.sequelpro.com/view/1948; I wasn't able to reproduce it but this fix should eliminate that exception
Diffstat (limited to 'Source/SPWindow.m')
-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) {