mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-916: Release ALL keys when browser window loses focus.
This commit is contained in:
@@ -1726,6 +1726,14 @@ GuacUI.Client.attach = function(guac) {
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
* Release all keys if window focus is lost.
|
||||
*/
|
||||
|
||||
window.onblur = function() {
|
||||
keyboard.reset();
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the contents of the remote clipboard if clipboard integration is
|
||||
* enabled, and null otherwise.
|
||||
@@ -2132,7 +2140,6 @@ GuacUI.Client.attach = function(guac) {
|
||||
* Update clipboard contents when changed
|
||||
*/
|
||||
|
||||
window.onblur =
|
||||
GuacUI.Client.clipboard.onchange = function() {
|
||||
GuacUI.Client.commitClipboard();
|
||||
};
|
||||
|
Reference in New Issue
Block a user