[Bf-blender-cvs] [e996b88] master: Fix T38424: modal number input ctrl - did not work, only ctrl numpad -.

Brecht Van Lommel noreply at git.blender.org
Mon Feb 3 15:50:13 CET 2014


Commit: e996b880048b6ad6147d1b4af42db6c6aa9ba71d
Author: Brecht Van Lommel
Date:   Mon Feb 3 15:47:48 2014 +0100
https://developer.blender.org/rBe996b880048b6ad6147d1b4af42db6c6aa9ba71d

Fix T38424: modal number input ctrl - did not work, only ctrl numpad -.

Since there isn't always a numpad available this should work.

===================================================================

M	source/blender/editors/util/numinput.c

===================================================================

diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c
index b9459d5..628492d 100644
--- a/source/blender/editors/util/numinput.c
+++ b/source/blender/editors/util/numinput.c
@@ -320,6 +320,7 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
 			utf8_buf = ascii;
 			break;
 		case PADMINUS:
+		case MINUSKEY:
 			if (event->ctrl) {
 				n->val_flag[idx] ^= NUM_NEGATE;
 				updated = true;
@@ -327,6 +328,7 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
 			}
 			/* fall-through */
 		case PADSLASHKEY:
+		case SLASHKEY:
 			if (event->ctrl) {
 				n->val_flag[idx] ^= NUM_INVERSE;
 				updated = true;




More information about the Bf-blender-cvs mailing list