fix ctrl+v text paste not working
This commit is contained in:
parent
00f22d46b7
commit
0fa0f57738
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ class PasteFilesAction(final Future<bool> Function() pasteFiles)
|
|||
extends Action<PasteTextIntent> {
|
||||
@override
|
||||
Future<void> 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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue