Hotkey to display DateField's Calendar
New Community Forums available at http://forums.ext.net
 

Coolite Forums

Welcome Guest ( Login | Register )
 
Hotkey to display DateField's Calendar
Subscribe
Last Login: 2/23/2010 11:27:25 AM
Posts: 4,
Posted 7/3/2009 7:28:46 AM

Group: Coolite Early Adopter
Hi there!   
I'm starting to study the ExtJs, and i was having a problem to display the DateField's Calendar and i arrived in the following solution to show it by pressing down the DOWN or SPACE key:

<ext:KeyMap ID="KeyMap1" runat="server" Target="#{DateField1}">

<ext:KeyBinding>
      <Keys>
                <ext:Key Code="SPACE" />
      </Keys>
      <Listeners>
                <Event Handler="#{DateField1}.onTriggerClick();" />
      </Listeners>
</ext:KeyBinding>

<ext:KeyBinding>
      <Keys>
                <ext:Key Code="DOWN" />
      </Keys>
      <Listeners>
                <Event Handler="#{DateField1}.onTriggerClick();" />
      </Listeners>
</ext:KeyBinding>

</ext:KeyMap>



Btw, is there a solution ready for this?

Thanks! Sorry if this topic is in the wrong section, but i think this also could be an example

__________________________________________
Leonardo Baggio
São Paulo, Brazil
leonardo [at] wabsolution [dot] com [dot] br
www.wabsolution.com.br

« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -5:00, Time now is 4:46pm