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(); + }); } } }