mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-352: Clarify that Guacamole.Keyboard can be given an Element or a Document.
This commit is contained in:
@@ -25,7 +25,7 @@ var Guacamole = Guacamole || {};
|
|||||||
* which represent keys as their corresponding X11 keysym.
|
* which represent keys as their corresponding X11 keysym.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Element} [element]
|
* @param {Element|Document} [element]
|
||||||
* The Element to use to provide keyboard events. If omitted, at least one
|
* The Element to use to provide keyboard events. If omitted, at least one
|
||||||
* Element must be manually provided through the listenTo() function for
|
* Element must be manually provided through the listenTo() function for
|
||||||
* the Guacamole.Keyboard instance to have any effect.
|
* 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
|
* events signalled through this Guacamole.Keyboard's onkeydown and
|
||||||
* onkeyup handlers.
|
* onkeyup handlers.
|
||||||
*
|
*
|
||||||
* @param {Element} element
|
* @param {Element|Document} element
|
||||||
* The Element to attach event listeners to for the sake of handling
|
* The Element to attach event listeners to for the sake of handling
|
||||||
* key or input events.
|
* key or input events.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user