From 1fa63b317a032fc348dab1ca69a8358f0fb3ae02 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 31 Dec 2013 13:39:43 +0100 Subject: Fix T37992: german NUMPAD-COMMA is not tranlated to decimal dot (for modal numinput). --- source/blender/editors/util/numinput.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/util/numinput.c') diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c index 891051185ac..941152fb1fc 100644 --- a/source/blender/editors/util/numinput.c +++ b/source/blender/editors/util/numinput.c @@ -294,6 +294,11 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event) n->str_cur = 0; } return true; + case PADPERIOD: + /* Force numdot, some OSs/countries generate a comma char in this case, sic... (T37992) */ + ascii[0] = '.'; + utf8_buf = ascii; + break; case CKEY: if (event->ctrl) { /* Copy current str to the copypaste buffer. */ -- cgit v1.2.3