From 1d4772af1846d02fd9fbc926d0d23ebc43f6c259 Mon Sep 17 00:00:00 2001 From: fufesou Date: Fri, 7 Apr 2023 16:03:18 +0800 Subject: [PATCH] fix android physical keyboard input Signed-off-by: fufesou --- flutter/lib/models/input_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/models/input_model.dart b/flutter/lib/models/input_model.dart index f18f63647..ff0faf7a4 100644 --- a/flutter/lib/models/input_model.dart +++ b/flutter/lib/models/input_model.dart @@ -64,7 +64,7 @@ class InputModel { InputModel(this.parent); KeyEventResult handleRawKeyEvent(FocusNode data, RawKeyEvent e) { - if (!stateGlobal.grabKeyboard) { + if (isDesktop && !stateGlobal.grabKeyboard) { return KeyEventResult.handled; }