mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T90893: Restoring a key in the keymap editor doesn't work if the key is only disabled
Reset `KMI_INACTIVE` flag when restore-item button is called Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D16773
This commit is contained in:
parent
9dc6bdf7a0
commit
d5bf817d9b
1 changed files with 2 additions and 1 deletions
|
|
@ -1962,7 +1962,8 @@ void WM_keymap_item_restore_to_default(wmWindowManager *wm, wmKeyMap *keymap, wm
|
|||
kmi->oskey = orig->oskey;
|
||||
kmi->keymodifier = orig->keymodifier;
|
||||
kmi->maptype = orig->maptype;
|
||||
kmi->flag = (kmi->flag & ~KMI_REPEAT_IGNORE) | (orig->flag & KMI_REPEAT_IGNORE);
|
||||
kmi->flag = (kmi->flag & ~(KMI_REPEAT_IGNORE | KMI_INACTIVE)) |
|
||||
(orig->flag & KMI_REPEAT_IGNORE);
|
||||
|
||||
WM_keyconfig_update_tag(keymap, kmi);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue