Fix T37992: german NUMPAD-COMMA is not tranlated to decimal dot (for modal numinput).

This commit is contained in:
Bastien Montagne 2013-12-31 13:39:43 +01:00
parent e2e5b45ff7
commit 1fa63b317a
Notes: blender-bot 2023-02-14 11:25:14 +01:00
Referenced by issue #37992, german NUMPAD-COMMA is not tranlated to decimal dot
1 changed files with 5 additions and 0 deletions

View File

@ -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. */