TF-3911 Support mail keyboard shortcut actions in email detailed view on web

This commit is contained in:
dab246
2025-07-29 02:00:32 +07:00
committed by Dat H. Pham
parent 1c7778d6cc
commit b2989521d9
36 changed files with 763 additions and 270 deletions
@@ -0,0 +1,13 @@
import 'package:flutter/services.dart';
extension LogicalKeySetHelper on Set<LogicalKeyboardKey> {
bool isKey(LogicalKeyboardKey key) => contains(key);
bool isOnly(LogicalKeyboardKey key) => length == 1 && contains(key);
bool isShift() =>
contains(LogicalKeyboardKey.shiftLeft) ||
contains(LogicalKeyboardKey.shiftRight);
bool isShiftPlus(LogicalKeyboardKey key) => isShift() && contains(key);
}