diff --git a/webf/example/macos/Runner/AppDelegate.swift b/webf/example/macos/Runner/AppDelegate.swift index d53ef64377..8e02df2888 100644 --- a/webf/example/macos/Runner/AppDelegate.swift +++ b/webf/example/macos/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/webf/lib/src/launcher/controller.dart b/webf/lib/src/launcher/controller.dart index 3824e91f3e..1ec78c502f 100644 --- a/webf/lib/src/launcher/controller.dart +++ b/webf/lib/src/launcher/controller.dart @@ -852,6 +852,9 @@ class WebFViewController implements WidgetsBindingObserver { @override void handleUpdateBackGestureProgress(backEvent) { } + + @override + void didChangeViewFocus(event) {} } // An controller designed to control kraken's functional modules.