mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-16 21:00:48 +00:00
20 lines
468 B
Dart
20 lines
468 B
Dart
import 'package:hotkey_manager/hotkey_manager.dart';
|
|
import 'package:universal_platform/universal_platform.dart';
|
|
|
|
import '../startup.dart';
|
|
|
|
class HotKeyTask extends LaunchTask {
|
|
const HotKeyTask();
|
|
|
|
@override
|
|
Future<void> initialize(LaunchContext context) async {
|
|
await super.initialize(context);
|
|
|
|
// the hotkey manager is not supported on mobile
|
|
if (UniversalPlatform.isMobile) {
|
|
return;
|
|
}
|
|
await hotKeyManager.unregisterAll();
|
|
}
|
|
}
|