Fix modifier key status

This commit is contained in:
asur4s 2022-09-05 23:39:01 -04:00
parent b6e0cc8e74
commit d3d31ff014

View File

@ -1003,11 +1003,18 @@ class FFI {
downOrUp: down);
}
Future<String> getKeyboardMode(){
Future<String> 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);
}