Stop any unused events so they don't leak to the application.
(self, event: OptionList.OptionHighlighted)
| 1246 | |
| 1247 | @on(OptionList.OptionHighlighted) |
| 1248 | def _stop_event_leak(self, event: OptionList.OptionHighlighted) -> None: |
| 1249 | """Stop any unused events so they don't leak to the application.""" |
| 1250 | event.stop() |
| 1251 | self.app.post_message(CommandPalette.OptionHighlighted(highlighted_event=event)) |
| 1252 | |
| 1253 | def _action_escape(self) -> None: |
| 1254 | """Handle a request to escape out of the command palette.""" |
nothing calls this directly
no test coverage detected