Skip to content

Commit 5a0ab50

Browse files
committed
docstrings
1 parent 0bfaf30 commit 5a0ab50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/textual_web/ganglion_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,15 @@ async def on_route_ping(self, packet: RoutePing) -> None:
422422
await self.send(RoutePong(packet.route_key, packet.data))
423423

424424
async def on_focus(self, packet: Focus) -> None:
425+
"""The remote app was focused."""
425426
session_process = self.session_manager.get_session_by_route_key(
426427
RouteKey(packet.route_key)
427428
)
428429
if session_process is not None:
429430
await session_process.send_meta({"type": "focus"})
430431

431432
async def on_blur(self, packet: Blur) -> None:
433+
"""The remote app lost focus."""
432434
session_process = self.session_manager.get_session_by_route_key(
433435
RouteKey(packet.route_key)
434436
)

0 commit comments

Comments
 (0)