From 2ce172087a03f1b0a3dfa36210d66a9981a67740 Mon Sep 17 00:00:00 2001 From: open-trade Date: Tue, 22 Dec 2020 15:35:45 +0800 Subject: [PATCH] try again --- flutter_hbb/lib/remote_page.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flutter_hbb/lib/remote_page.dart b/flutter_hbb/lib/remote_page.dart index 72458a36e..cb18c99ef 100644 --- a/flutter_hbb/lib/remote_page.dart +++ b/flutter_hbb/lib/remote_page.dart @@ -141,8 +141,10 @@ class _RemotePageState extends State { FFI.inputKey(char); final brackets = '("[<{(“【《{'; if (brackets.indexOf(char) >= 0) { - openKeyboard(); - return; + _timer?.cancel(); + _timer = Timer(Duration(milliseconds: 30), () { + openKeyboard(); + }); } } }