SetModal sets the specified panel and its descendants to be the exclusive receivers of events.
(ipan IPanel)
| 61 | |
| 62 | // SetModal sets the specified panel and its descendants to be the exclusive receivers of events. |
| 63 | func (gm *manager) SetModal(ipan IPanel) { |
| 64 | |
| 65 | gm.modal = ipan |
| 66 | gm.SetKeyFocus(nil) |
| 67 | gm.SetCursorFocus(nil) |
| 68 | } |
| 69 | |
| 70 | // SetKeyFocus sets the key-focused IDispatcher, which will exclusively receive key and char events. |
| 71 | func (gm *manager) SetKeyFocus(disp core.IDispatcher) { |
nothing calls this directly
no test coverage detected