Skip to content

Commit

Permalink
Merge pull request #1660 from davep/stop-input-double-paste
Browse files Browse the repository at this point in the history
Fix double-paste into `Input`
  • Loading branch information
davep authored Jan 24, 2023
2 parents 4bb7326 + d101e3d commit 82e2739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fixed stuck screen https://github.com/Textualize/textual/issues/1632
- Fixed relative units in `grid-rows` and `grid-columns` being computed with respect to the wrong dimension https://github.com/Textualize/textual/issues/1406
- Fixed double-paste into `Input` https://github.com/Textualize/textual/issues/1657

## [0.10.1] - 2023-01-20

Expand Down
1 change: 1 addition & 0 deletions src/textual/widgets/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ async def on_key(self, event: events.Key) -> None:
def on_paste(self, event: events.Paste) -> None:
line = event.text.splitlines()[0]
self.insert_text_at_cursor(line)
event.stop()

def on_click(self, event: events.Click) -> None:
offset = event.get_content_offset(self)
Expand Down

0 comments on commit 82e2739

Please sign in to comment.