mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +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
|
* Returns the contents of the remote clipboard if clipboard integration is
|
||||||
* enabled, and null otherwise.
|
* enabled, and null otherwise.
|
||||||
@@ -2132,7 +2140,6 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
* Update clipboard contents when changed
|
* Update clipboard contents when changed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
window.onblur =
|
|
||||||
GuacUI.Client.clipboard.onchange = function() {
|
GuacUI.Client.clipboard.onchange = function() {
|
||||||
GuacUI.Client.commitClipboard();
|
GuacUI.Client.commitClipboard();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user