diff options
author | Campbell Barton <campbell@blender.org> | 2022-01-21 07:19:01 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-01-21 07:20:02 +0300 |
commit | 53923f502d0f92e5bb3e60e543d69cd38146e874 (patch) | |
tree | e153b7077b0fad4cd3598a9f17a3630efb3a33ed /source | |
parent | 20655128c96f2dc5a61bebc40339078363bf6572 (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).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm.c | 2 |
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 { |