GUACAMOLE-352: Clarify that Guacamole.Keyboard can be given an Element or a Document.
Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/5136b1cf Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/5136b1cf Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/5136b1cf Branch: refs/heads/master Commit: 5136b1cf8e4637c253cca609c336038edb8274e3 Parents: 86d9cc1 Author: Michael Jumper <mjum...@apache.org> Authored: Mon Dec 18 11:20:13 2017 -0800 Committer: Michael Jumper <mjum...@apache.org> Committed: Tue Jan 16 10:20:42 2018 -0800 ---------------------------------------------------------------------- guacamole-common-js/src/main/webapp/modules/Keyboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/5136b1cf/guacamole-common-js/src/main/webapp/modules/Keyboard.js ---------------------------------------------------------------------- diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index c25a1fd..aaeb1f6 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -25,7 +25,7 @@ var Guacamole = Guacamole || {}; * which represent keys as their corresponding X11 keysym. * * @constructor - * @param {Element} [element] + * @param {Element|Document} [element] * The Element to use to provide keyboard events. If omitted, at least one * Element must be manually provided through the listenTo() function for * the Guacamole.Keyboard instance to have any effect. @@ -1186,7 +1186,7 @@ Guacamole.Keyboard = function Keyboard(element) { * events signalled through this Guacamole.Keyboard's onkeydown and * onkeyup handlers. * - * @param {Element} element + * @param {Element|Document} element * The Element to attach event listeners to for the sake of handling * key or input events. */