Add keyboard lock support (#665)
Allows system keybindings to be intercepted by the guest.
This commit is contained in:
parent
7a6eaf38da
commit
d9c9277011
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue