event/search_events.py: move some codes from genRightClickMenu to new function getMoveToGroupSubMenu