Fix #30958: Right click menu and add shortcut for importers/exporters doesn't work
[blender.git] / source / blender / windowmanager / intern / wm_keymap.c
index ddbacc6b747cdc8223f33607ab3feff563e41d07..af56211a4e323fb15d9204c0cb64e25a93131ab8 100644 (file)
@@ -1190,6 +1190,10 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
        else if (strstr(opname, "MARKER_OT")) {
                km = WM_keymap_find_all(C, "Markers", 0, 0);
        }
+       /* Import/Export*/
+       else if (strstr(opname, "IMPORT_") || strstr(opname, "EXPORT_")) {
+               km = WM_keymap_find_all(C, "Window", 0, 0);
+       }
        
        
        /* 3D View */