aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-04 23:29:21 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-04 23:29:21 +0000
commitbe9d9739ab37719ce761ee7c1e7c97ec2aa8a76d (patch)
tree3ed19d46e7e719af870ec094e55193b47f3f01a0
parent3d6ee35bc6b8fa082e31761caef5276506e17707 (diff)
downloadsequelpro-be9d9739ab37719ce761ee7c1e7c97ec2aa8a76d.tar.gz
sequelpro-be9d9739ab37719ce761ee7c1e7c97ec2aa8a76d.tar.bz2
sequelpro-be9d9739ab37719ce761ee7c1e7c97ec2aa8a76d.zip
• FIXED: allow to enter dead keys esp. for non-US keyboards
- e.g. for a German one ` is a dead key (press space to enter `) -- further checks needed for other non-US keyboards
-rw-r--r--Source/CMTextView.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 07b334a0..49aee2cf 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -256,7 +256,9 @@ YY_BUFFER_STATE yy_scan_string (const char *);
// Check if user pressed ⌥ to allow composing of accented characters.
// e.g. for US keyboard "⌥u a" to insert ä
- if (([theEvent modifierFlags] & allFlags) == NSAlternateKeyMask)
+ // or for non-US keyboards to allow to enter dead keys
+ // e.g. for German keyboard ` is a dead key, press space to enter `
+ if (([theEvent modifierFlags] & allFlags) == NSAlternateKeyMask || [[theEvent characters] length] == 0)
{
[super keyDown: theEvent];
return;