INNER CODE UNIT · Python

unregister_keymaps

SpectralVectors/RightMouseNavigation · __init__.py:63

def unregister_keymaps(menumodes, panelmodes, keyconfig):
    # Reactivating menus
    for i in menumodes:
        for key in keyconfig.keymaps[i].keymap_items:
            if key.idname == "wm.call_menu" and key.type == "RIGHTMOUSE":
                key.active = True
                key.value = "PRESS"

    # Reactivating panels
    for i in panelmodes:
        for key in keyconfig.keymaps[i].keymap_items:
            if key.idname == "wm.call_panel" and key.type == "RIGHTMOUSE":
                key.active = True
                key.value = "PRESS"

    # Changing the Walk Modal Map back
    for key in keyconfig.keymaps["View3D Walk Modal"].keymap_items:
        if key.propvalue == "CANCEL" and key.type == "RIGHTMOUSE":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…