mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-30 18:23:03 +03:00
Fix: refresh canvas when pasting
Broken in last commit by adding: if "ctrl" in key: # Don't interfere with Ctrl+C, Ctrl+V, etc. return
This commit is contained in:
parent
a7619b7721
commit
f1652c257a
1
paint.py
1
paint.py
@ -1940,6 +1940,7 @@ class PaintApp(App[None]):
|
||||
self.warning_message_box(_("Paint"), _("Not enough room to paste text.") + "\n\n" + _("Enlarge the text area and try again."), "ok")
|
||||
return
|
||||
textbox.contained_image.copy_region(source=pasted_image, target_region=paste_region)
|
||||
self.canvas.refresh_scaled_region(textbox.region)
|
||||
return
|
||||
pasted_image = AnsiArtDocument.from_text(text)
|
||||
self.stop_action_in_progress()
|
||||
|
Loading…
Reference in New Issue
Block a user