Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-01-21 07:19:01 +0300
committerCampbell Barton <campbell@blender.org>2022-01-21 07:20:02 +0300
commit53923f502d0f92e5bb3e60e543d69cd38146e874 (patch)
treee153b7077b0fad4cd3598a9f17a3630efb3a33ed
parent20655128c96f2dc5a61bebc40339078363bf6572 (diff)
Fix T95078: Setting digits as modifier in keymap doesn't work
Allow any non-modifier keyboard events to be used. Note that the existing check for >= EVT_AKEY allowed NDOF and other non-keyboard events (including modifiers, which didn't work).
-rw-r--r--source/blender/makesrna/intern/rna_wm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_wm.c b/source/blender/makesrna/intern/rna_wm.c
index 8c128292fd7..c64a47fc2ab 100644
--- a/source/blender/makesrna/intern/rna_wm.c
+++ b/source/blender/makesrna/intern/rna_wm.c
@@ -965,7 +965,7 @@ static void rna_wmKeyMapItem_keymodifier_set(PointerRNA *ptr, int value)
if (value == EVT_ESCKEY) {
/* pass */
}
- else if (value >= EVT_AKEY) {
+ else if (ISKEYBOARD(value) && !ISKEYMODIFIER(value)) {
kmi->keymodifier = value;
}
else {