function setMenusEnabled(h,manager)

menutags = {'ts.shift','ts.select'};
allmenuTags = get(manager.Menus,{'Tag'});
set(manager.Menus(ismember(allmenuTags,menutags)),'Enable','off')
set(manager.Menus(~ismember(allmenuTags,menutags)),'Enable','on')