mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 22:03:55 +03:00
21 lines
495 B
Dart
Executable File
21 lines
495 B
Dart
Executable File
import 'dart:io';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
class CopyIntent extends Intent {
|
|
const CopyIntent();
|
|
}
|
|
|
|
class SearchIntent extends Intent {
|
|
const SearchIntent();
|
|
}
|
|
|
|
final ctrlOrCmd =
|
|
Platform.isMacOS ? LogicalKeyboardKey.meta : LogicalKeyboardKey.control;
|
|
|
|
final globalShortcuts = {
|
|
LogicalKeySet(ctrlOrCmd, LogicalKeyboardKey.keyC): const CopyIntent(),
|
|
LogicalKeySet(ctrlOrCmd, LogicalKeyboardKey.keyF): const SearchIntent(),
|
|
};
|