Add keyboard lock support (#665)

Allows system keybindings to be intercepted by the guest.
This commit is contained in:
hello-smile6 2022-05-28 01:53:56 -07:00 committed by GitHub
commit d9c9277011
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1030,7 +1030,10 @@ V86Starter.prototype.screen_go_fullscreen = function()
focus_element && focus_element.focus();
}
//this.lock_mouse(elem);
try {
navigator.keyboard.lock();
} catch(e) {}
this.lock_mouse();
};