﻿<?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: KeyManager Class for Detecting Key Press Combos or Sequences</title>
	<atom:link href="http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/feed/" rel="self" type="application/rss+xml" />
	<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/</link>
	<description>Scripting is fun like any other hobby</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:17:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Micha</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-777</link>
		<dc:creator>Micha</dc:creator>
		<pubDate>Wed, 28 Jul 2010 10:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-777</guid>
		<description>Hello

Proceeding the Function Keys (F1 - F10) actually doesn&#039;t work.
The Key code for e.x. the F10 key is 121,
inside the __onKeyDown methode it handles this keycode like a &quot;y&quot; (std. ascii code) and converts it to an uppercase &quot;Y&quot;
which then is another key (code 89) and the previously defined  handler for the F10 key is obviously never called....

the workaround for me was to commend out the block
if (k &gt;= 97 &amp;&amp; k &lt;= 122)
{
	k=String.fromCharCode(k).toUpperCase().charCodeAt(0);
}

inside the __onKeyDown handler...

why is this check actually included?
Flex and AIR apps what i know proceed only the uppercase ascii codes, so if you hit &quot;a&quot; the keyCode will be 65 and not 97...


beside that i really appreciate your KeyManager class,
so thx a lot for your work and sharing it!

greetings</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>Proceeding the Function Keys (F1 &#8211; F10) actually doesn&#8217;t work.<br />
The Key code for e.x. the F10 key is 121,<br />
inside the __onKeyDown methode it handles this keycode like a &#8220;y&#8221; (std. ascii code) and converts it to an uppercase &#8220;Y&#8221;<br />
which then is another key (code 89) and the previously defined  handler for the F10 key is obviously never called&#8230;.</p>
<p>the workaround for me was to commend out the block<br />
if (k &gt;= 97 &amp;&amp; k &lt;= 122)<br />
{<br />
	k=String.fromCharCode(k).toUpperCase().charCodeAt(0);<br />
}</p>
<p>inside the __onKeyDown handler&#8230;</p>
<p>why is this check actually included?<br />
Flex and AIR apps what i know proceed only the uppercase ascii codes, so if you hit &quot;a&quot; the keyCode will be 65 and not 97&#8230;</p>
<p>beside that i really appreciate your KeyManager class,<br />
so thx a lot for your work and sharing it!</p>
<p>greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leef</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-770</link>
		<dc:creator>leef</dc:creator>
		<pubDate>Fri, 23 Jul 2010 14:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-770</guid>
		<description>Hey Keith,

Your key manager doesn&#039;t handle the commandKey bug with Flash Keyboard Events on Mac.  To see this, uncheck singular combos.  Press &amp; hold command key, move the box using any arrow key, and release the arrow key.  The box will continue to move off in the direction last pressed, even if you then release the command key.

The problem is that any keys pressed while command key is down will not generate a KEY_UP event.  I&#039;ve logged this bug with Adobe https://bugs.adobe.com/jira/browse/FP-5089

The only semi decent workaround I&#039;ve found is listening explicitly for command key KEY_UP event, and removing all registered KEY_DOWN references.  Sucks, but I haven&#039;t found any other means to workaround the bug.</description>
		<content:encoded><![CDATA[<p>Hey Keith,</p>
<p>Your key manager doesn&#8217;t handle the commandKey bug with Flash Keyboard Events on Mac.  To see this, uncheck singular combos.  Press &amp; hold command key, move the box using any arrow key, and release the arrow key.  The box will continue to move off in the direction last pressed, even if you then release the command key.</p>
<p>The problem is that any keys pressed while command key is down will not generate a KEY_UP event.  I&#8217;ve logged this bug with Adobe <a href="https://bugs.adobe.com/jira/browse/FP-5089" rel="nofollow">https://bugs.adobe.com/jira/browse/FP-5089</a></p>
<p>The only semi decent workaround I&#8217;ve found is listening explicitly for command key KEY_UP event, and removing all registered KEY_DOWN references.  Sucks, but I haven&#8217;t found any other means to workaround the bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith H</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-758</link>
		<dc:creator>Keith H</dc:creator>
		<pubDate>Fri, 16 Jul 2010 19:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-758</guid>
		<description>Individual key combinations within a key sequences Array (such as [&quot;P+K&quot;,&quot;K&quot;,&quot;K&quot;,&quot;J&quot;]) will not work in this class. Feel free to add support for it though.</description>
		<content:encoded><![CDATA[<p>Individual key combinations within a key sequences Array (such as ["P+K","K","K","J"]) will not work in this class. Feel free to add support for it though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blue</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-757</link>
		<dc:creator>Blue</dc:creator>
		<pubDate>Fri, 16 Jul 2010 19:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-757</guid>
		<description>Can this be used for mixed combos? like P+K,K,K,J</description>
		<content:encoded><![CDATA[<p>Can this be used for mixed combos? like P+K,K,K,J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith H</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-740</link>
		<dc:creator>Keith H</dc:creator>
		<pubDate>Fri, 18 Jun 2010 21:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-740</guid>
		<description>So easy a caveman can do it?</description>
		<content:encoded><![CDATA[<p>So easy a caveman can do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pupun</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-738</link>
		<dc:creator>Pupun</dc:creator>
		<pubDate>Fri, 18 Jun 2010 07:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-738</guid>
		<description>that&#039;s easy............</description>
		<content:encoded><![CDATA[<p>that&#8217;s easy&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith H</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-694</link>
		<dc:creator>Keith H</dc:creator>
		<pubDate>Sun, 16 May 2010 15:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-694</guid>
		<description>Jay, this class is for AS3, you are welcome to make an AS2 version of it.</description>
		<content:encoded><![CDATA[<p>Jay, this class is for AS3, you are welcome to make an AS2 version of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Mark Domugho</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-692</link>
		<dc:creator>Jay Mark Domugho</dc:creator>
		<pubDate>Sat, 15 May 2010 10:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-692</guid>
		<description>can macromedia flash 8 execute this properly?</description>
		<content:encoded><![CDATA[<p>can macromedia flash 8 execute this properly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Delucchi</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-687</link>
		<dc:creator>Mike Delucchi</dc:creator>
		<pubDate>Sun, 09 May 2010 22:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-687</guid>
		<description>Great class Keith! Nice one mate. Cheers.</description>
		<content:encoded><![CDATA[<p>Great class Keith! Nice one mate. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the janitor, again</title>
		<link>http://keith-hair.net/blog/2010/02/15/keymanager-class-for-detecting-key-press-combos-or-sequences/comment-page-1/#comment-682</link>
		<dc:creator>the janitor, again</dc:creator>
		<pubDate>Tue, 04 May 2010 11:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.net/blog/?p=189#comment-682</guid>
		<description>You&#039;re the best !</description>
		<content:encoded><![CDATA[<p>You&#8217;re the best !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
