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

Method _action_escape

src/textual/command.py:1253–1257  ·  view source on GitHub ↗

Handle a request to escape out of the command palette.

(self)

Source from the content-addressed store, hash-verified

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."""
1255 self._cancel_gather_commands()
1256 self.app.post_message(CommandPalette.Closed(option_selected=False))
1257 self.dismiss()
1258
1259 def _action_command_list(self, action: str) -> None:
1260 """Pass an action on to the [`CommandList`][textual.command.CommandList].

Callers

nothing calls this directly

Calls 3

dismissMethod · 0.80
post_messageMethod · 0.45

Tested by

no test coverage detected