From 016796bf455c06eaa2c430428a43e0568336b8bb Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 28 Jul 2015 14:03:51 +0100 Subject: [PATCH] Fix for detecting KeyPress::numberPadDecimalPoint on OSX with non-english keyboards --- .../juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index 4dc140272d..0f1bf2e250 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -1068,7 +1068,9 @@ public: '8', KeyPress::numberPad8, '9', KeyPress::numberPad9, '+', KeyPress::numberPadAdd, '-', KeyPress::numberPadSubtract, '*', KeyPress::numberPadMultiply, '/', KeyPress::numberPadDivide, - '.', KeyPress::numberPadDecimalPoint, '=', KeyPress::numberPadEquals }; + '.', KeyPress::numberPadDecimalPoint, + ',', KeyPress::numberPadDecimalPoint, // (to deal with non-english kbds) + '=', KeyPress::numberPadEquals }; for (int i = 0; i < numElementsInArray (numPadConversions); i += 2) if (keyCode == numPadConversions [i])