Location: PHPKode > projects > So Easy PHP > SoEasy/EasyHtml/HtmlMaker/JavaScript/functions/CatchEvents/JavaScriptCatchKeyPress.class.php
<?php
require_once "HtmlMaker/JavaScript/functions/JavaScriptCatchEvent.class.php";

/**
 * JavaScriptAlert
 * alert.class.php
 * @author	Ricardo <hide@address.com>
 * @since	22/10/2006
 * @package EasyHtml
 * @subpackage JavaScript
 */
class JavaScriptCatchKeyPress extends JavaScriptCatchEvent {

	/**
	 * Construtor
	 * @param string frase para o alert
	 */
	function JavaScriptCatchKeyPress($functionHandler = "getKeyPressed") {
		$this->JavaScriptCatchEvent();

		$code = "defineEvent(\"keypress\", \"keydown\");\n";
		$code.= "var eventUsesFn = $functionHandler;\n";
		$this->addExecutable($code);
	}
}// JavaScriptAlert
?>
Return current item: So Easy PHP