diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-12-31 16:39:43 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-12-31 16:42:23 +0400 |
commit | 1fa63b317a032fc348dab1ca69a8358f0fb3ae02 (patch) | |
tree | 42aca41ad4d50ae71acfb41610e5325a1ba62bd8 /source/blender/editors/util/numinput.c | |
parent | e2e5b45ff7d6aba7ead88dc3aa1b6003deed4142 (diff) |
Fix T37992: german NUMPAD-COMMA is not tranlated to decimal dot (for modal numinput).
Diffstat (limited to 'source/blender/editors/util/numinput.c')
-rw-r--r-- | source/blender/editors/util/numinput.c | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |