From d3d31ff0149a72949c5ec35ad40658753da927b7 Mon Sep 17 00:00:00 2001 From: asur4s Date: Mon, 5 Sep 2022 23:39:01 -0400 Subject: [PATCH] Fix modifier key status --- flutter/lib/models/model.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dart index b1cc6192b..811608847 100644 --- a/flutter/lib/models/model.dart +++ b/flutter/lib/models/model.dart @@ -1003,11 +1003,18 @@ class FFI { downOrUp: down); } - Future getKeyboardMode(){ + Future getKeyboardMode() { return bind.sessionGetKeyboardName(id: id); } void enterOrLeave(bool enter) { + // Fix status + if (!enter) { + alt = false; + shift = false; + ctrl = false; + command = false; + } bind.sessionEnterOrLeave(id: id, enter: enter); }