| 1164 | } |
| 1165 | |
| 1166 | void MenuBox::cancelMenuLoop() |
| 1167 | { |
| 1168 | Menu* menu = getMenu(); |
| 1169 | if (menu) { |
| 1170 | // Do not close the popup menus if we're already processing |
| 1171 | // open/close popup messages. |
| 1172 | if (get_base(this)->is_processing) |
| 1173 | return; |
| 1174 | |
| 1175 | menu->closeAll(); |
| 1176 | |
| 1177 | // Lost focus |
| 1178 | Manager::getDefault()->freeFocus(); |
| 1179 | } |
| 1180 | } |
| 1181 | |
| 1182 | void MenuItem::executeClick() |
| 1183 | { |
no test coverage detected