Fix T37992: german NUMPAD-COMMA is not tranlated to decimal dot (for modal numinput).
This commit is contained in:
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
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue