Returns the active widget with a matching key context, including overlays. If multiple stacks have an active widget with a matching key context, the currently focused stack is preferred.
(self, keyctx)
| 248 | return stacks |
| 249 | |
| 250 | def current(self, keyctx): |
| 251 | """ |
| 252 | Returns the active widget with a matching key context, including overlays. |
| 253 | If multiple stacks have an active widget with a matching key context, |
| 254 | the currently focused stack is preferred. |
| 255 | """ |
| 256 | for s in self.stacks_sorted_by_focus(): |
| 257 | t = s.top_widget() |
| 258 | if t.keyctx == keyctx: |
| 259 | return t |
| 260 | |
| 261 | def current_window(self, keyctx): |
| 262 | """ |
no test coverage detected