Fix modifier key status
This commit is contained in:
parent
b6e0cc8e74
commit
d3d31ff014
@ -1003,11 +1003,18 @@ class FFI {
|
|||||||
downOrUp: down);
|
downOrUp: down);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> getKeyboardMode(){
|
Future<String> getKeyboardMode() {
|
||||||
return bind.sessionGetKeyboardName(id: id);
|
return bind.sessionGetKeyboardName(id: id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void enterOrLeave(bool enter) {
|
void enterOrLeave(bool enter) {
|
||||||
|
// Fix status
|
||||||
|
if (!enter) {
|
||||||
|
alt = false;
|
||||||
|
shift = false;
|
||||||
|
ctrl = false;
|
||||||
|
command = false;
|
||||||
|
}
|
||||||
bind.sessionEnterOrLeave(id: id, enter: enter);
|
bind.sessionEnterOrLeave(id: id, enter: enter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user