-
2 Oct 2010 10:53 PM #1
Cannot catch the "keypress" and "specialkey" event.
Cannot catch the "keypress" and "specialkey" event.
Hi, support team,
i am using ExtJS version 3.2.1, i want to handle the "specialkey" event of a Field to do form submit, but i failed because the event.getKey() always return undefined like this:
Note: It's the same code snippet from Ext Documentation, i used in my code.Code:'specialkey': function(f, e) { var key = e.getKey(); // here i always got undefined. if (e.getKey() == e.ENTER) { var form = field.ownerCt.getForm(); form.submit(); } },
Also, i tried to use the "keypress" event of Ext.Element, while i got the same issue.
Could you anyone know about this, is it a bug or my mistake?
Thank you for reply!
-
4 Oct 2010 5:05 AM #2
All listeners and handlers doesn't work on Firefox =/
Last friday the code worked... =/
What is happening?
-
4 Oct 2010 5:18 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[CLOSED][3.0] SetValue shows "valueField" instead of "displayField". mode "local".
By galdaka in forum Ext 3.x: BugsReplies: 3Last Post: 28 Oct 2009, 6:38 AM -
[FIXED][3.??] Ext.Direct "exception" event raises "tid has no properties" error
By j.bruni in forum Ext 3.x: BugsReplies: 8Last Post: 22 Jun 2009, 8:56 PM -
replace the "south" with the "new Ext.StatusBar" in "layout:'border'"
By ealpha in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 18 May 2008, 8:28 PM -
[SOLVED]tabs event "active","deactive" etc... not wok
By trowa in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 5 Jul 2007, 4:05 AM


Reply With Quote