<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; keyboard</title>
	<atom:link href="http://blog.minidx.com/tag/keyboard/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex中通过扩展List类重载protected keyDownHandler()事件使键盘导航(keyboard navigation)功能无效的例子</title>
		<link>http://blog.minidx.com/2008/06/16/905.html</link>
		<comments>http://blog.minidx.com/2008/06/16/905.html#comments</comments>
		<pubDate>Mon, 16 Jun 2008 14:51:40 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[keyDownHandler]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/06/16/905.html</guid>
		<description><![CDATA[在前面Flex中通过继承扩展Accordion类和重载protected keyDownHandler()事件使Accordion控件中键盘导航(keyboard navigation)功能无效的例子中，我们了解了如何使Accordion控件中键盘导航(keyboard navigation)功能无效。类似的，接下来的例子Flex中通过扩展List类重载protected keyDownHandler()事件，使键盘导航(keyboard navigation)功能无效。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里查看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; xmlns:comps=&#34;comps.*&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Array&#160;id=&#34;arr&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;One&#34; /&#62;
&#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Two&#34; /&#62;
&#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Three&#34; /&#62;
&#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Four&#34; /&#62;
&#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Five&#34; /&#62;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/06/16/905.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中通过继承扩展Accordion类和重载protected keyDownHandler()事件使Accordion控件中键盘导航(keyboard navigation)功能无效的例子</title>
		<link>http://blog.minidx.com/2008/06/15/904.html</link>
		<comments>http://blog.minidx.com/2008/06/15/904.html#comments</comments>
		<pubDate>Sun, 15 Jun 2008 02:25:07 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Accordion]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[keyDownHandler]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/06/15/904.html</guid>
		<description><![CDATA[参照前面的关于Accordion的例子，比如Flex中通过自定义Accordion容器头部来阻止用户点击Accordion容器头部的例子，lex中如何通过设定headerStyleName样式在Accordion控件中使用嵌入字体的例子等等，在获取光标后，可以通过键盘来操作（比如移动上下键，按下空白键等）。接下来的例子演示了Flex中通过继承扩展Accordion类和重载protected keyDownHandler()事件，使Accordion控件中键盘导航(keyboard navigation)功能无效。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里查看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; xmlns:comps=&#34;comps.*&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;comps:MyAccordion&#160;id=&#34;accordion&#34;
&#160; &#160; &#160; &#160; &#160; &#160; width=&#34;100%&#34;
&#160; &#160; &#160; &#160; &#160; &#160; height=&#34;100%&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:VBox&#160;id=&#34;v1&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; label=&#34;One&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/06/15/904.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/18 queries in 0.025 seconds using disk
Object Caching 222/449 objects using disk

Served from: blog.minidx.com @ 2012-02-09 19:13:23 -->
