Skip to content

Commit e01449c

Browse files
fix: Fixed handling of mac intents (singerdmx#1089)
1 parent 0046ca6 commit e01449c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/src/widgets/raw_editor.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,14 @@ class RawEditorState extends EditorState
14311431

14321432
@override
14331433
void performSelector(String selectorName) {
1434-
// TODO: implement performSelector
1434+
final intent = intentForMacOSSelector(selectorName);
1435+
1436+
if (intent != null) {
1437+
final primaryContext = primaryFocus?.context;
1438+
if (primaryContext != null) {
1439+
Actions.invoke(primaryContext, intent);
1440+
}
1441+
}
14351442
}
14361443
}
14371444

0 commit comments

Comments
 (0)