From be9d9739ab37719ce761ee7c1e7c97ec2aa8a76d Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 4 Apr 2009 23:29:21 +0000 Subject: =?UTF-8?q?=E2=80=A2=20FIXED:=20allow=20to=20enter=20dead=20keys?= =?UTF-8?q?=20esp.=20for=20non-US=20keyboards=20-=20e.g.=20for=20a=20Germa?= =?UTF-8?q?n=20one=20`=20is=20a=20dead=20key=20(press=20space=20to=20enter?= =?UTF-8?q?=20`)=20--=20further=20checks=20needed=20for=20other=20non-US?= =?UTF-8?q?=20keyboards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMTextView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3