diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-04-04 23:29:21 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-04-04 23:29:21 +0000 |
commit | be9d9739ab37719ce761ee7c1e7c97ec2aa8a76d (patch) | |
tree | 3ed19d46e7e719af870ec094e55193b47f3f01a0 | |
parent | 3d6ee35bc6b8fa082e31761caef5276506e17707 (diff) | |
download | sequelpro-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.m | 4 |
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; |