()
| 162 | } |
| 163 | |
| 164 | func (wb *WidgetBase) handleWidgetContextMenu() { |
| 165 | wb.On(events.ContextMenu, func(e events.Event) { |
| 166 | wi := wb.This.(Widget) |
| 167 | wi.ShowContextMenu(e) |
| 168 | }) |
| 169 | } |
| 170 | |
| 171 | func (wb *WidgetBase) ShowContextMenu(e events.Event) { |
| 172 | e.SetHandled() // always |
no test coverage detected