Skip to content

Commit

Permalink
example: add macOS actions introduced in 255e282
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-Samoticha committed Dec 4, 2022
1 parent 255e282 commit c419fb4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,19 @@ class MyAppBodyState extends State<MyAppBody> {
name: 'Remove Mask Image',
function: () => Window.removeMaskImage(),
),
MacOSActionMenuItem(
name: 'Ignore Mouse Events',
function: () {
Window.ignoreMouseEvents();
Timer(const Duration(seconds: 5),
() => Window.acknowledgeMouseEvents());
},
),
MacOSActionMenuItem(
name: 'Acknowledge Mouse Events',
function: () =>
Window.acknowledgeMouseEvents(),
),
],
),
),
Expand Down

0 comments on commit c419fb4

Please sign in to comment.