Returns the active window with a matching key context, ignoring overlays. If multiple stacks have an active widget with a matching key context, the currently focused stack is preferred.
(self, keyctx)
| 259 | return t |
| 260 | |
| 261 | def current_window(self, keyctx): |
| 262 | """ |
| 263 | Returns the active window with a matching key context, ignoring overlays. |
| 264 | If multiple stacks have an active widget with a matching key context, |
| 265 | the currently focused stack is preferred. |
| 266 | """ |
| 267 | for s in self.stacks_sorted_by_focus(): |
| 268 | t = s.top_window() |
| 269 | if t.keyctx == keyctx: |
| 270 | return t |
| 271 | |
| 272 | def sig_focus(self, section): |
| 273 | self.focus_position = section |
no test coverage detected