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> {
|
extends Action<PasteTextIntent> {
|
||||||
@override
|
@override
|
||||||
Future<void> invoke(PasteTextIntent intent) async {
|
Future<void> invoke(PasteTextIntent intent) async {
|
||||||
// callingAction is the text field's own paste action, which this overrides
|
final pasteText = callingAction;
|
||||||
if (!await pasteFiles()) callingAction?.invoke(intent);
|
if (!await pasteFiles()) pasteText?.invoke(intent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue