mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #1742 from Textualize/rodrigogiraoserrao-patch-1
Update _data_table.py
This commit is contained in:
@@ -1042,7 +1042,7 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
|
|||||||
self._set_hover_cursor(True)
|
self._set_hover_cursor(True)
|
||||||
if self.show_cursor and self.cursor_type != "none":
|
if self.show_cursor and self.cursor_type != "none":
|
||||||
# Only post selection events if there is a visible row/col/cell cursor.
|
# Only post selection events if there is a visible row/col/cell cursor.
|
||||||
self._post_message_selected_message()
|
self._post_selected_message()
|
||||||
meta = self.get_style_at(event.x, event.y).meta
|
meta = self.get_style_at(event.x, event.y).meta
|
||||||
if meta:
|
if meta:
|
||||||
self.cursor_cell = Coordinate(meta["row"], meta["column"])
|
self.cursor_cell = Coordinate(meta["row"], meta["column"])
|
||||||
|
|||||||
Reference in New Issue
Block a user