fix web peer card tap (#9622)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-10-11 16:35:15 +08:00 committed by GitHub
parent 844b853074
commit cde7620eda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 94 additions and 91 deletions

View file

@ -475,7 +475,8 @@ class _AppState extends State<App> with WidgetsBindingObserver {
: (context, child) {
child = _keepScaleBuilder(context, child);
child = botToastBuilder(context, child);
if (isDesktop && desktopType == DesktopType.main) {
if ((isDesktop && desktopType == DesktopType.main) ||
isWebDesktop) {
child = keyListenerBuilder(context, child);
}
if (isLinux) {