From 0fa0f5773831a61c40806ed68bccacb4726e1301 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Fri, 16 Oct 2026 11:02:23 -0400 Subject: [PATCH] fix ctrl+v text paste not working --- lib/widgets/composer/paste_files_action.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/composer/paste_files_action.dart b/lib/widgets/composer/paste_files_action.dart index 7ca11b0..79bf4ea 100644 --- a/lib/widgets/composer/paste_files_action.dart +++ b/lib/widgets/composer/paste_files_action.dart @@ -6,7 +6,7 @@ class PasteFilesAction(final Future Function() pasteFiles) extends Action { @override Future invoke(PasteTextIntent intent) async { - // callingAction is the text field's own paste action, which this overrides - if (!await pasteFiles()) callingAction?.invoke(intent); + final pasteText = callingAction; + if (!await pasteFiles()) pasteText?.invoke(intent); } }