Flex 4 does not dispatch keyboard events for ENTER key.

Hello everyone. I think I have a strange problem with Flex 4 Beta (4.0.0.8909). My application has had event listener for keyUp event for a month now and suddenly (two days ago) I've noticed that keyUp event is not dispatched for ENTER (ALT also) key. Anyone know why? By the way, I've tried this with keyDown event, also 4.0.0.8847 version of SDK - still the same: no keyboard events for ENTER (and ALT) key.
Here is the sample application that has got this issue:
<s:Application
   xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/halo"
   minWidth="640" minHeight="480"
   keyUp="application1_keyUpHandler (event)">
   <fx:Script>
      <![CDATA[
         import mx.controls.Alert;
         protected function application1_keyUpHandler (event: KeyboardEvent):void
            Alert.show ("Key up: " + event.keyCode);
      ]]>
   </fx:Script>
   <s:layout>
      <s:BasicLayout/>
   </s:layout>
   <s:TextArea verticalCenter="0" horizontalCenter="0" width="200"/>
</s:Application>
If you run this application and try typing anything in a TextArea you will get alerts with key codes. However, if you press ENTER (or ALT), you will get no alert.
I'm pretty sure the code above is right so that means there is a bug in latest nightly builds of SDK (i would swhitch to an older build if i knew which one does not have this bug).
Any ideas?

Flex harUI wrote:
That's true, but in this case, I think the text editing code is eating ENTER key in order to prevent parents from seeing it and acting on it (like a submit button).  We'll see if we can find a way around that.
You can get the ENTER key now by listening in capture phase.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui
The enter key isn't being disposed of by textedit, the attached example code works without error if you a- remove the alert box and b-set the focus to your text area on initialisation. I agree that pressing the enter key then calling a dialog box will result in the enter key being "gobbled up" as  the enter key is overridden by the dialog box code.
I think the first suggestion should be to anyone don't use dialogboxes for testing code. If for some reason debugging isn't desirable instead of a trace statement a simple label  can be used as a 'fake' trace.
David
Message was edited by: David_F57: I worded this wrong, imho there is no need for a work around, the textarea component works as it should. When intercepting 'system' keycodes there is a need to consider the effect of the intercept and code appropriately to that end.

Similar Messages

  • FileRefrence.browse does not dispatch select event in some cases

    In my flex web application, filereference.browse  sometimes does not dispatch any select event. I am using flex sdk 4.6.

    What happens if you put table Table_1 into the Analytic View?
    Also go ahead and and update HANA, Rev.60 is very old by now.

  • [svn] 4707: Dispatch propertyChange event for horizontalScrollPosition/ verticalScrollPosition so the thumbnail in the scroller will track the movement made via the keyboard .

    Revision: 4707
    Author: [email protected]
    Date: 2009-01-28 09:00:45 -0800 (Wed, 28 Jan 2009)
    Log Message:
    Dispatch propertyChange event for horizontalScrollPosition/verticalScrollPosition so the thumbnail in the scroller will track the movement made via the keyboard.
    QE Notes:
    Doc Notes:
    Bugs: SDK-18887
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18887
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as

    Revision: 4707
    Author: [email protected]
    Date: 2009-01-28 09:00:45 -0800 (Wed, 28 Jan 2009)
    Log Message:
    Dispatch propertyChange event for horizontalScrollPosition/verticalScrollPosition so the thumbnail in the scroller will track the movement made via the keyboard.
    QE Notes:
    Doc Notes:
    Bugs: SDK-18887
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18887
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as

  • The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.

    I recently moved from coldfusion 8 to coldfusion 9 but all the pages with cfgrid: is throwing the following error. Any suggestion would be of great help
    coldfusion.jsp.JRunTagLibraryInfo$NoSuchAttributeException: The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
    at coldfusion.jsp.JRunTagLibraryInfo.getPropertyType(JRunTagLibraryInfo.java:627)
    at coldfusion.jsp.JRunTagLibraryInfo.buildTagInfo(JRunTagLibraryInfo.java:585)
    at coldfusion.jsp.JRunTagLibraryInfo.getTag(JRunTagLibraryInfo.java:267)
    at coldfusion.compiler.NeoTranslationContext.findTagName(NeoTranslationContext.java:346)
    at coldfusion.compiler.NeoTranslationContext.isKnownTag(NeoTranslationContext.java:222)
    at coldfusion.compiler.CFMLParserBase.isKnownTagName(CFMLParserBase.java:589)
    at coldfusion.compiler.cfml40TokenManager.TokenLexicalActions(cfml40TokenManager.java:6704)
    at coldfusion.compiler.cfml40TokenManager.getNextToken(cfml40TokenManager.java:6586)
    at coldfusion.compiler.cfml40.getToken(cfml40.java:11879)
    at coldfusion.compiler.CFMLParserBase.isTrivialAngleBracket(CFMLParserBase.java:707)
    at coldfusion.compiler.cfml40.jj_3_1(cfml40.java:9392)
    at coldfusion.compiler.cfml40.jj_3_2(cfml40.java:9460)
    at coldfusion.compiler.cfml40.jj_3R_67(cfml40.java:9500)
    at coldfusion.compiler.cfml40.jj_3_86(cfml40.java:8147)
    at coldfusion.compiler.cfml40.jj_3R_92(cfml40.java:8584)
    at coldfusion.compiler.cfml40.jj_3_85(cfml40.java:8641)
    at coldfusion.compiler.cfml40.jj_2_85(cfml40.java:7619)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4215)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.cfelse(cfml40.java:442)
    at coldfusion.compiler.cfml40.cfelseif(cfml40.java:374)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:314)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.start(cfml40.java:4664)
    at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:667)
    at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:648)
    at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:401)
    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:343)
    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:144)
    at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:418 )
    at coldfusion.util.LruCache.get(LruCache.java:180)
    at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java :362)
    at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
    at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
    at coldfusion.util.SoftCache.get(SoftCache.java:81)
    at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:591)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
    at coldfusion.CfmServlet.service(CfmServlet.java:201)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    Thanks Vishu,
    We are running Coldfusion 9 and attach is the sample code and error message.:
    The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
    The CFML compiler was processing:
      A cfgrid tag beginning on line 39, column 18.
    The error occurred in E:/Websites/DreData/sobrietytesting/main/Sobrietytesting/Admin/view_users.cfm: line 54
    52 :                     hrefkey="member_id"
    53 :                     bind="cfc:tabledisplay.browseAccessAcountRequests(,,,)"
    54 :                     >
    55 :                    

  • TemporalProxyElement does not dispatch new Duration

    Hi
    Following my last discussion, where I asked help to add a temporal trait to a ImageElement, and get it by wrapping it to a TemporalProxyElement I discovered that although it works great , but, does not dispatch a change Duration event. I made a custom playlist (not osmf sequence) and have certain issues with it. There is any workaround for this? How can I get that when loading the TemporalProxyElement as MediaPlayer Element it dispatches this event?
    Thanks..
    Chaim

    This is a known issue, related to two separate bugs.  The first is that we'd like MediaPlayer to dispatch certain events (such as durationChange) even when the underlying MediaElement simply picks up the trait which holds the event, but currently it only dispatches the MediaPlayerCapabilityChangeEvent.  If you were to register for this event (the temporalChange event), then upon receiving this event you could query the duration property and have the right value. But right now you don't get that event either, because TemporalProxyElement doesn't dispatch events at the right time.  This is filed as bug FM-126.

  • Mouse does not respond to clicks for 10mins after startup

    When I start my iMac I have to wait at least 10mins before it will respond to any mouse-clicks, the mouse will move but not register any clicks. The same is true for the keyboard; it does not register any input for at least 10mins.
    This has only started happening since I upgraded to Lion.
    It is a third-party mouse (Labtec) and a Mac keyboard, mouse plugged into keyboard, keyboard plugged into Mac, I've tried a diferent USB port to no avail, I also have a pen tablet connected, again this registers movement but not clicks, this is connected to a different USB port to the keyboard/mouse.
    After approx 10mins. all previous mouse-clicks or keyboard entries register. I've tried disabling USBOverdrive but this makes no difference (and I have it running on my Macbook without issue)
    Interestingly though, if I restart the iMac I don't have the same trouble, it's only when I start it from not having been used for a short while or if it crashes and I have to force it off with the power button (this happened while typing this message for the first time since installing Lion, blue and white stripy screen).
    24" iMac, Mac OS X v10.7, 2.8GHz Intel Core 2 Duo, 3GB memory.
    Thanks in advance,
    Simon
    NB Just crashed again, white screen this time...

    See if changing the batteries helps.

  • Firefox does not remember our usernames for hotmail anymore

    Since our update to Firefox 4.0, Firefox does not remember our usernames for Hotmail anymore. Only the last used username is remembered.
    We don't have problems with other websites regarding this.
    So why is it only with Hotmail?
    I cleared all cookies, but no change....
    Can you help us out?

    You can't save the name and password from Hotmail via the Password Manager in current Firefox versions. Hotmail (live.com) uses JavaScript to create the login form.<br />
    You should be able to use save form data to save user names and other form data like I posted above.
    Don't you get a drop down list that shows previously entered names?
    Make sure that you do not run Firefox in permanent Private Browsing mode.
    * https://support.mozilla.com/kb/Private+Browsing
    * You enter Private Browsing mode if you select: Firefox > Preferences > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Firefox > Preferences > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

  • Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    My form - which was working great - disappeared when I did some editing; here is the message I get now.
    The form does not exist. Please re-enter the web address as the link may be misspelled.
    The link for the form is:
    https://adobeformscentral.com/?f=UqJr%2Aas2RJIHPVA4iGIQ6w
    Please look into the matter and resolve the issue at the earliest.
    Regards,
    Vaibhav Nigam

  • Here's the error message: An error has occurred.   The form does not exist. Please re-enter the web address as the link may be misspelled.  [ref: VFS3sNB28XnqlIfeTBcHKA, BadRequest]

    I've done this successfully in the past so why am I receiving an error report after placing a new link to a form into my website page and testing the link from my website?  Here's the error message: An error has occurred.   The form does not exist. Please re-enter the web address as the link may be misspelled.  [ref: VFS3sNB28XnqlIfeTBcHKA, BadRequest]

    My form - which was working great - disappeared when I did some editing; here is the message I get now.
    The form does not exist. Please re-enter the web address as the link may be misspelled.
    The link for the form is:
    https://adobeformscentral.com/?f=UqJr%2Aas2RJIHPVA4iGIQ6w
    Please look into the matter and resolve the issue at the earliest.
    Regards,
    Vaibhav Nigam

  • After install snow leopard, ical does not show the events of some calendars

    After I install snow leopard, ical does not show all the events, or simple does not show the events of some calendars that I created.
    Can somebody solve this problem? Is there some update for ical?

    Try the following:
    1 - Go to your user account home folder, and open the library folder within it.
    Look for the folder named "Calendars" and inside you might find a bunch of different folders with weird names. If they are there that means your calendars might not be lost.
    2 - Look for the file "Calendar Cache". That file might be corrupted. Trash it. You may want to save a copy of it elsewhere. Once trashed, re-open ical. This should force it to rebuild its library based on those folders with weird names you saw. Your calendars should be back. Good luck

  • Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
    In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
    After that is done reboot the machine and see if you can log in.
    If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
    Reboot and try again.
    If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
    Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
    Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
    Lots of work, but there is no Lion disks.
    https://discussions.apple.com/message/16276201#16276201

  • KEU5 – It does not found senders (emisor) for segment.

    Dear Expert Sap
    Please, I try to explain the following scenary :
    I had created one purcharse  using ME21N  transaction, that it had one service and imputation on cost center (CeCo)
    I had created document using ML81N and accepting.
    I can lookup posting document FI  and it is correct.
    I can lookup posting document profit center cost
    But  it did not create posting on COPA. Because It  did not have configuration or specified OKB9:  Cost Ctr (KSTAR)  assigned   - > Cost element master (KOSTL).
    When I am excuting this report S_ALR_87013611 - Cost Centers: Actual/Plan/Variance.
    I are seing income as statistical posting under cost centres.
    Cost centres cannot have 'real' income postings. It is correct.
    Because  Cost Ele  category  is equal “12” and  (Cost Ele category 11 or 12) are posted AS  statistical on cost centers.
    Finally:
    Bussines need that  "posted as statistical on cost centers" =>  it should create on COPA.
    We are thinking that we can using a cycle in KEU5 transacction.
    But whem we are executing transaction KEU5 son it get this message:
    – It does not found senders (emisor) for segment.
    Unfortunately, I am not found one note oss.
    Could you check this and recommend the best option?  or could you recommend any note oss, please?
    All your recomendations will be welcome.
    Thanks a lot for your recomendation and help.
    Best regards,
    Gustavo Hermoza

    Thank you  very much for your answer, Ronghua!!!
    I am thinking about  your  recomendation about  using substitucion (OKC9) to derivate the PAOBJNR as reael account assignment.    
    It will probably be good idea  but   Step(Okc9)  does not   derivate or move characteristics to  RKE_GET_ACCTNR  Function. Because we dont not know this characteristics.
    We had reviwed cost line items for cost center  and  we are seeing  that all document are Material Document and  this document dont have fields to derivate  characteristics.
    Another alternative:
    Transaction KA02 change category element.
    Field change CElem Category is not possible (transaction data already exists)
    Diagnosis
    To ensure the consistency of existing data, you can only change object CElem Category if no transaction data exists in the change period; that is, neither plan data nor actual data has been posted.
    As transaction data already exists, it is not possible to change objects in this time period.
    Procedure
    If you still want to change the object, select a suitable change interval by choosing "Edit -> Analysis period...".
    I want to show this post it is good.
    Profitability segment - ERP SD - SCN Wiki
    Thanks a lot for your recomendation and help.
    Best regards,
    Gustavo Hermoza

  • I have a late 2008 white macbook.  I have a mini dvi to hdmi adapter, and a hdmi cord.  My cannot get my MB to detect an external monitor.  Nothing happens when plugged in.  Also, my display settings does not have an option for mirroring or arrangment tab

    I have a late 2008 white macbook.  I have a mini dvi to hdmi adapter, and a hdmi cord.  My cannot get my MB to detect an external monitor.  Nothing happens when plugged in.  Also, my display settings does not have an option for mirroring or arrangment tab

    Yeah, I'm having the same exact problem - It seems that the thunderbolt minidisplay port is only able to output the analog VGA signal, not the digital signal to support DVI and HDMI. This is a bug that came up after installing 10.7.1. I bought my macbook air with 10.7 on it, upgraded it to 10.7.1 as soon as I got it, so I have never been able to use hdmi or dvi with my macbook air. This is an extremely frustrating problem for me, I used HDMI on a daily basis with my PC. I have spent many hours at the genius bar running diagnostic tests so Apple can get as much information as possible to create a fix for this problem. I have been emailing tech support for 3 or so weeks now, they keep saying that they are working on a fix and it should be out soon, but 10.7.2 has come and gone and I still have no HDMI functionality with my MacBook Air!

  • HT201240 This process does not appear to work for me.  I'm running 10.8.3.  I created a new user for a guest staying with me.  They have gone now and I am attempting to either change the password or delete the user.  It won't allow me to choose the user I

    This process does not appear to work for me.  I'm running 10.8.3.  I created a new user for a guest staying with me.  They have gone now and I am attempting to either change the password or delete the user.  It won't allow me to choose the user I created.  I am logged in as myself and it states that I am an "Admin".  The user I'm attempting to change is listed as a "standard" user and there is a white checkmark inside an orange circular background on the user pic in the list of users. 
    Can someone help me?  I am having a hard time believing that OSx will allow me to create users and allow them use of my computer and it's drives, yet it will not allow me to change the password so I can monitor what they might have been doing while logged on?  What if this were my child?  This guest left under sketchy circumstances, and I'd really like to be able to ensure they were not using my computer to do illegal things or to have illegal communications.
    Any help would be appreciated.  (It's odd that it was so simple to "create" a user and set a password for them.......but it's complicated or a little known process to reverse.
    Thanks.

    Here are two screen shots to show you what I am seeing.  The first screen shot shows it allowing me to select (highlighted in blue) my admin user (which is what I am locced in as).  The second screen shot shows it allowing me to select the "Guest" user (highlighted in blue).  However when I click on the user "Orion" nothing happens.  It will not change to highlight that user.

  • Visual Studio 2012 SharePoint Project Error : The partial project item type does not have a value for this property

    Hi,
    I am getting this error from visual studio 2012 whenever i try to create the following project types:
    - Workflow Custom activity
    - Web parts
    The error is as mentioned below
    "The partial project item type does not have a value for this property"
    Due to this the when I add above type of items in my project, they show a red cross icon against them.
    Please let me know If have you any solution?

    Hi
    I had same issue. Below is the solution
    Installing
    "Visual Studio 2012 Update 3" usually solves this problem. (You can download it through microsoft's official site at
    "http://www.microsoft.com/en-in/download/details.aspx?id=39305")
    Hansraj Rathva

Maybe you are looking for

  • Reading First record of table in smartform

    Hi friends doing a smartform for COO certifcate of origin in which selection criteria is Customer invoice throug that i get list invoice and through which i get commercial invoice . For each Sales order no and line item no there can be mulitple comme

  • Labview FPGA called another software component

    Hi I am trying to compile my FPGA code which has previously compiled. I get this error.  "Labview FPGA called another software component, and that component returned the following error: Error Code: -52009 NI Platform Services: The requested resource

  • How do I connect Envy 4502 to my Mac wirelessly?

    I have registered the printer with my router (as is the Mac), but how the heck do I get the Mac and the printer to talk to one another, I have installed the printer software from disc. Printer works OK via USB by the way. This question was solved. Vi

  • Wiki Some Attachments are Broken

    For sometime in the past few weeks, something has gone with our Wiki Attachments.  Some links are working without issue, and some are getting a 404 error.  The links with 404 are being redirected to the same URL, however there is a /sandbox/ before t

  • InDesign CC (2014) Crashes

    I had been working in InDesign CC (2014) for over 5 hours today and it crashed after trying to move a placed AI file. Now, every time I open any InDesign file and try to move any element it crashes.