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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to