*
* ***** END LICENSE BLOCK ***** */
-// Guacamole namespace
+/**
+ * Namespace for all Guacamole JavaScript objects.
+ * @namespace
+ */
var Guacamole = Guacamole || {};
/**
*
* @event
* @param {Number} keysym The keysym of the key being pressed.
- * @returns {Boolean} true if the originating event of this keypress should
- * be allowed through to the browser, false or undefined
- * otherwise.
*/
this.onkeydown = null;
*
* @event
* @param {Number} keysym The keysym of the key being released.
- * @returns {Boolean} true if the originating event of this key release
- * should be allowed through to the browser, false or
- * undefined otherwise.
*/
this.onkeyup = null;
// Send key event
if (keysym != null && guac_keyboard.onkeydown)
- return guac_keyboard.onkeydown(keysym) != false;
-
- return true;
+ guac_keyboard.onkeydown(keysym);
}
// Send key event
if (keysym != null && guac_keyboard.onkeyup)
- return guac_keyboard.onkeyup(keysym) != false;
-
- return true;
+ guac_keyboard.onkeyup(keysym);
}