fix: Fixed handling of mac intents (#1089)

pull/1093/head
Eric Martineau 2 years ago committed by GitHub
parent 0046ca6782
commit e01449c9eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      lib/src/widgets/raw_editor.dart

@ -1431,7 +1431,14 @@ class RawEditorState extends EditorState
@override
void performSelector(String selectorName) {
// TODO: implement performSelector
final intent = intentForMacOSSelector(selectorName);
if (intent != null) {
final primaryContext = primaryFocus?.context;
if (primaryContext != null) {
Actions.invoke(primaryContext, intent);
}
}
}
}

Loading…
Cancel
Save