GUAC-916: Release ALL keys when browser window loses focus.

This commit is contained in:
Michael Jumper
2014-10-30 13:24:36 -07:00
parent ca199e1ea6
commit 4a5efe4819

View File

@@ -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();
};