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 +- doc/ScintillaHistory.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 64197c744..a73ba9def 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -493,6 +493,7 @@ Chris Mayo Van de Bugger + Tse Kit Yam

@@ -540,6 +541,10 @@ Bug #1842.

  • + Fix key binding bug on Cocoa for control+. + Bug #1854. +
  • +
  • Fix scroll bar size warnings on GTK+ caused by #1831. Bug #1851.
  • -- cgit v1.2.3