Skip to content

Commit 6760453

Browse files
authored
Merge pull request #6290 from Textualize/copy-event
version bump
2 parents fbecffa + 9324669 commit 6760453

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [6.11.0] - 2025-12-18
9+
10+
### Added
11+
12+
- Added a `TextSelected` event. https://github.com/Textualize/textual/pull/6290
13+
814
## [6.10.0] - 2025-12-16
915

1016
### Fixed
@@ -3246,6 +3252,8 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
32463252
- New handler system for messages that doesn't require inheritance
32473253
- Improved traceback handling
32483254

3255+
[6.11.0]: https://github.com/Textualize/textual/compare/v6.10.0...v6.11.0
3256+
[6.10.0]: https://github.com/Textualize/textual/compare/v6.9.0...v6.10.0
32493257
[6.9.0]: https://github.com/Textualize/textual/compare/v6.8.0...v6.9.0
32503258
[6.8.0]: https://github.com/Textualize/textual/compare/v6.7.1...v6.8.0
32513259
[6.7.1]: https://github.com/Textualize/textual/compare/v6.7.0...v6.7.1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "textual"
3-
version = "6.10.0"
3+
version = "6.11.0"
44
homepage = "https://github.com/Textualize/textual"
55
repository = "https://github.com/Textualize/textual"
66
documentation = "https://textual.textualize.io/"

src/textual/events.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,3 +976,7 @@ class DeliveryFailed(Event, bubble=False):
976976

977977
name: str | None = None
978978
"""Optional name returned to the app to identify the download."""
979+
980+
981+
class TextSelected(Event, bubble=True):
982+
"""Sent from the screen when text is selected (Not Input and TextArea)"""

src/textual/screen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,7 @@ def _forward_event(self, event: events.Event) -> None:
16981698
self.clear_selection()
16991699
self._mouse_down_offset = None
17001700
self._selecting = False
1701+
self.post_message(events.TextSelected())
17011702

17021703
elif isinstance(event, events.MouseDown) and not self.app.mouse_captured:
17031704
self._box_select = event.shift

0 commit comments

Comments
 (0)