MCPcopy
hub / github.com/Textualize/textual / _stop_event_leak

Method _stop_event_leak

src/textual/command.py:1248–1251  ·  view source on GitHub ↗

Stop any unused events so they don't leak to the application.

(self, event: OptionList.OptionHighlighted)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
post_messageMethod · 0.45

Tested by

no test coverage detected