From 93876550b9a3c21f4f67253be4ed2c7cb1824c2a Mon Sep 17 00:00:00 2001 From: Tse Kit Yam Date: Mon, 29 Aug 2016 22:35:52 +1000 Subject: Bug [#1854]. Fix: cannot get original input char on Mac for some input-modifiers combinations e.g. Option + e => empty char, Control + k => a char with ascii code 11 --- cocoa/ScintillaCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 4aa1d209c..ec9844bb0 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -2150,7 +2150,7 @@ static int TranslateModifierFlags(NSUInteger modifiers) bool ScintillaCocoa::KeyboardInput(NSEvent* event) { // For now filter out function keys. - NSString* input = [event characters]; + NSString* input = [event charactersIgnoringModifiers]; bool handled = false; -- cgit v1.2.3