<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript Keypress Event &#8211; the right way</title>
	<atom:link href="http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/feed/" rel="self" type="application/rss+xml" />
	<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/</link>
	<description>Musician, developer, and software architect... aka ne0phyte</description>
	<lastBuildDate>Thu, 17 Feb 2011 12:53:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Steve</title>
		<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/comment-page-1/#comment-778</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 07 Sep 2010 19:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://ne0phyte.com/?p=41#comment-778</guid>
		<description>I don&#039;t think the word penultimate means what you think it means.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think the word penultimate means what you think it means.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayson</title>
		<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/comment-page-1/#comment-766</link>
		<dc:creator>jayson</dc:creator>
		<pubDate>Tue, 26 Jan 2010 14:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://ne0phyte.com/?p=41#comment-766</guid>
		<description>I was thinking if how you would use the codes above in outputting keys which are not in the keyboard. we were asked to do something like that.

for example: press ctrl+alt+f
then it would just output function symbol(ƒ).

how could i do it in html/javascript?</description>
		<content:encoded><![CDATA[<p>I was thinking if how you would use the codes above in outputting keys which are not in the keyboard. we were asked to do something like that.</p>
<p>for example: press ctrl+alt+f<br />
then it would just output function symbol(ƒ).</p>
<p>how could i do it in html/javascript?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wamsley</title>
		<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/comment-page-1/#comment-52</link>
		<dc:creator>Steve Wamsley</dc:creator>
		<pubDate>Mon, 10 Nov 2008 00:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://ne0phyte.com/?p=41#comment-52</guid>
		<description>Detecting Shift + Enter is a bit more tricky, especially with cross-browser considerations. I found the following links enlightening:

http://www.simpltry.com/2007/01/04/shift-key-detection/

http://www.webdeveloper.com/forum/archive/index.php/t-102141.html

Basically, in your keypress handler event, you want to detect if event.shiftKey is true AND event.keyCode == 13.</description>
		<content:encoded><![CDATA[<p>Detecting Shift + Enter is a bit more tricky, especially with cross-browser considerations. I found the following links enlightening:</p>
<p><a href="http://www.simpltry.com/2007/01/04/shift-key-detection/" rel="nofollow">http://www.simpltry.com/2007/01/04/shift-key-detection/</a></p>
<p><a href="http://www.webdeveloper.com/forum/archive/index.php/t-102141.html" rel="nofollow">http://www.webdeveloper.com/forum/archive/index.php/t-102141.html</a></p>
<p>Basically, in your keypress handler event, you want to detect if event.shiftKey is true AND event.keyCode == 13.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/comment-page-1/#comment-40</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 08 Oct 2008 21:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://ne0phyte.com/?p=41#comment-40</guid>
		<description>I was wondering how you would check to see if Shift + Enter is hit? I am using this to submit a text box but I would like hte user to be able to hit Shit + Enter to enter a new line. Can the Event call take in two buttons being pressed?</description>
		<content:encoded><![CDATA[<p>I was wondering how you would check to see if Shift + Enter is hit? I am using this to submit a text box but I would like hte user to be able to hit Shit + Enter to enter a new line. Can the Event call take in two buttons being pressed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wamsley</title>
		<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/comment-page-1/#comment-39</link>
		<dc:creator>Steve Wamsley</dc:creator>
		<pubDate>Wed, 08 Oct 2008 02:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://ne0phyte.com/?p=41#comment-39</guid>
		<description>the KEY values are defined in prototype.js in the Event object definition (~line #3667, depending on prototype version). Here they are:

  KEY_BACKSPACE: 8,
  KEY_TAB:       9,
  KEY_RETURN:   13,
  KEY_ESC:      27,
  KEY_LEFT:     37,
  KEY_UP:       38,
  KEY_RIGHT:    39,
  KEY_DOWN:     40,
  KEY_DELETE:   46,
  KEY_HOME:     36,
  KEY_END:      35,
  KEY_PAGEUP:   33,
  KEY_PAGEDOWN: 34,
  KEY_INSERT:   45,</description>
		<content:encoded><![CDATA[<p>the KEY values are defined in prototype.js in the Event object definition (~line #3667, depending on prototype version). Here they are:</p>
<p>  KEY_BACKSPACE: 8,<br />
  KEY_TAB:       9,<br />
  KEY_RETURN:   13,<br />
  KEY_ESC:      27,<br />
  KEY_LEFT:     37,<br />
  KEY_UP:       38,<br />
  KEY_RIGHT:    39,<br />
  KEY_DOWN:     40,<br />
  KEY_DELETE:   46,<br />
  KEY_HOME:     36,<br />
  KEY_END:      35,<br />
  KEY_PAGEUP:   33,<br />
  KEY_PAGEDOWN: 34,<br />
  KEY_INSERT:   45,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/comment-page-1/#comment-37</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 04 Oct 2008 05:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://ne0phyte.com/?p=41#comment-37</guid>
		<description>Ok, thanks first of all for this tidbit of code!  I have a question refering to how/where did you discover that the following code is valid:

Event.KEY_RETURN

Is that a constant?  Where is this defined?  Is it an extension of the Prototype library?  I don&#039;t see it on their site.

Thanks!
Karl..</description>
		<content:encoded><![CDATA[<p>Ok, thanks first of all for this tidbit of code!  I have a question refering to how/where did you discover that the following code is valid:</p>
<p>Event.KEY_RETURN</p>
<p>Is that a constant?  Where is this defined?  Is it an extension of the Prototype library?  I don&#8217;t see it on their site.</p>
<p>Thanks!<br />
Karl..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

