Problem with the enter key

I am facing a problem when I press enter key on any control like buttons, menus etc., The event get transferred to the parent container. It results in very weird behavior.
For example I am showing a right click popup on a button, and when I hit enter on the selected popup menu the parent button also get clicked.
I am using jre 1.4.1, has any one experienced this.
Does any one know the workaround ?
Thanks
- Bharat

How to consume? Action even does not have this method.
Also, I am looking for a generic solutions, my application is huge, even if the workaround suggested by works, I need to do it at lots of places.

Similar Messages

  • Problem with the volume keys on my keyboard.

    Hey everybody,
    I have a problem with the volume keys on my keyboard. This started a couple days ago and I can't seem to figure out how to fix it. When I press the volume up or down buttons, the graphic appears on the screen as it normally would, but has no effect on the volume of the sound coming out of my speakers.  Therefore, the only way to change the volume of music or whatever I am listening to is to use the volume control within the program/website itself (itunes, youtube, etc.) Even changing the volume on the volume icon at the menu bar on top of the screen does nothing.  If anyone has an idea of how to go about solving this issue, I would greatly appreciate it. Thanks!

    First look into the Preference > Sound > Outpur whether internal Speakers are choosen.
    The only Preference to delete I can discover is com.apple.systempreferences.plist in your home Library folder. You can try to move it out to the desktop for example, not to loose all your settings. Restart and see whether the problem still persists. If you don't know how to do this here some Terminal (Applications > Utilities) commands. Enter them by copy and paste followed by <enter>
    mv ~/Library/Preferences/com.apple.systempreferences.plist ~/Desktop/
    restart
    to get it back:
    mv ~/Desktop/com.apple.systempreferences.plist  ~/Library/Preferences/
    confirm with "y" if you are asked to replace this file.
    marek

  • I have a new hard drive and itunes and my computer (windows XP) no longer recognise my ipod. I also had the problem with the registry keys not being present but this has now been fixed. However i can no longer link my ipod up with itunes.

    When I first tried itunes with my new hard drive there was the problem with the registry keys but something also flagged up about needing a signed driver. Is this anything to do with why Itunes and my computer no longer recognises when my ipod is linked up? Whatever i try under 'devices' my ipod is never available to sync up. If anyone can help I would be most grateful.

    Thanks for your reply. Unfortunately this has not worked. I didn't have quicktime to begin with so I don't know if that makes a difference? After following the instructions, I get the "registry keys missing" problem appear again (which I've subsequently fixed again) and then when I connected the ipod I got the following message - 'Device driver software was not successfully installed'.
    I've tried windows update but this doesn't do anything as '...the service is not running'.
    Any suggestions?

  • Bug: problems with the Escape key

    Hi all,
    In an attempt to get around real estate problems, I set my Dell 24" monitor in portrait mode. Logic 8 behaves as it should most of the time. However, there appears to be a problem with the Escape key. Most of the time, the Tools menu doesn't appear until you mouse out of the editing areas (eg into the menu area above the piano roll).
    Clearly, Logic should just take its resolution and screen dimensions from the OS but there appears to be a problem in extreme portrait mode.
    I'll report this but wanted to check that I'm not being an absolute and total plonker first. Anybody confirm this behaviour?
    Thanks!
    Pete

    that sounds like a memory issue. have you tried reorganizing memory?

  • Problem with disabling "ENTER" key in JTextArea

    Hi,
    I have the following codes to disable the 'ENTER' key in the JTextArea,
    but it does not work. Does anyone know why?
    KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
    textarea.getKeymap().removeKeyStrokeBinding(enterKey);
    textarea.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    // do something
    Thanks,
    Pin

    I don't know how you mean "disable", but if you are going to ignore the Enter key, then add a KeyListener to the text area, and in the key pressed method, consume() the key event if the VK_ENTER was pressed. That's all, and you don't have to deal with that key binding thingy.
    The other two event types (typed and released) might be ignored, the enter is processed during key press (as it is now, with the default settings).
    The reason is that processing the Enter key (and other such internally understood keys) is done by the peer, but the peer won't get the key event if it's already consumed.
    FYI: Were it a JTextField, consuming the Enter key presses would mean that the field won't fire action events any more. Since text area does not fire action events, therefore it's a non issue.
    FYI2: Consuming the event only blocks the event to be sent to the peer, all the other listeners still get it.

  • Keyboard problems with the "z" key

    Hello everyone, I have problems with my "z" key.Recently, it is sufficent to touch the key without pressing to write the z.Unfortunately that happens also when I want to use the "t" or "u" next to it. I hope you can help me with this problem and can tell me what to do.Thanks in advance for your answers (and sorry for my bad english). greetings, bina90

    Try to reset the device by pressing hold of the home and power button for 15-20 seconds and letting of when the Apple logo appears.

  • How to refresh changed data in a plannable template with the Enter Key

    Hi,
    The situation I face is as follows.
    Integrated Planning is being implemented as a tool for budgeting. The user changes a value in a plannable cell on the portal and wishes to see the new updated data by pressing ENTER. Currently we have provided a REFRESH button so that the user gets the desired result.
    Is it possible to see the updated value by pressing ' ENTER' and if so , whats the way around to do it.
    thanks in advance.
    Jaya

    Hey guys,
    I'm interested too in this solution. In BPS there is an additional function described in the HowTo Paper HowTo run planning functions on save and other events
    Now I'm looking for this possibility in IP as well in excel-based IP and web-based IP. For example a copy function should be executed automatically when pushing the enter key.
    Thanks a lot!
    Clemens

  • JFileChooser - activating buttons with the enter key

    Hi All,
    I am trying to figure out how to activate the cancel button in the file chooser by tabbing to it, and than pressing the enter key. I know how to do this in a regular dialog, but I can't seem to get the access I need to the JFileChooser to get it to work there.
    I would appreciate any help.
    Thanks!
    robinste

    The Buttons in the File Chooser by default dont use the Enter Key.
    You must make the Enter key work if you are to use it
    after you tab to get the focus on to it.
    For this to be done you will need to extend the FileChooser
    and change the key listener for the cancel button .......
    Hope t was of some help ............

  • Problems with the Period Key

    This may be strange, but when I type a period "." strange thins happen in Mail and Safari! It is as if when typing a period it is like hitting the return key! Forinstance, if I'm typing a web address in on Safari, as soon as I type a period in the address bar, Safari goes and tries to look up the address before I finish.
    Or, in Mail, when I type a period in the body of the message, the cursor moves down a line like I hit the return key. It even happens while I type this message and it ONLY happens with the period key. This is fustrating! Does anyone have ideas as to how to fix this? I have all upgrades installed and my powerbook generally is running great except for this. Help?

    Don't you have the year dim joined with the fact?

  • Problems with the "X" Key ...

    Since quite a while I noted that I real often miss the "X" key when typing a text. I always treated it as my fault (a typo), especially as it works when typing it a second time. But meanhwile I have to say that it only happens with that "X" key and as I never has a wrong letter in my text and just a missing "X", I start wondering whether there is a problem.
    Now I feel like I have read something about a thing like this a while ago. Unfortunatley I cannot remember where ...
    I also have a hard time searching the Discussions due to difficult search arguments (wow, try X and key ...).
    So my question before I going to buy me a new keyboard ... does anybody has the same feeling that the "X" key fails rather often? Or does even somebody know about a know problem?
    Thx for your info on that!

    Does it do it when you are logged into another User account?
    Dave M.
    MacOSG v.2.0 coming April 1, 2010! No fooling! Check it out!
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • Problem with the 'up' key in G560e

    I have a problem that my 'up' key doesn't work at all. It's important because I need it to brighten my screen with 'Fn' key. Is it possible to brighten the screen somehow without using 'Fn' key? the 'up' key seems to be not working at all...
    Solved!
    Go to Solution.

    Hi Adingh,
    What you can do is Increase the brightness by clicking the Battery icon in your taskbar, then select adjust screen brightness 
    In the long run
    I would suggest you replace the keyboard
    Lets make 2015 the year of the #DO
    Did I or someone help you today? Press the star on the left to thank them with a Kudo!

  • Problems with the alt key and numbers, please help major issue

    All of a sudden I am unable to use the alt key with any numbers, meaning I can't create hashes (alt 3) and bullets (alt 8), and others that I haven't missed yet. I've tried two keyboards, one wireless and one wired but to no avail. It seems to work fine for everything except 3 through 9.
    I found somebody with the same issue beforehand:
    *I have finally tracked the problem down to a problem preference file, namely this one:*
    com.apple.symbolichotkeys.plist
    *I have no idea what it's supposed to do, but it wasn't doing it right.*
    But even still, it made no sense to me, can anybody help me? This is an issue that's been disrupting everything I do on my Mac for a few days now, and not found the issue as yet.

    Feel a bit silly now! Just sorted it myself, had a look around my hard drive, and deleted the com.apple.symbolichotkeys.plist file, and restarted, when I started up and tested it my ¡€#¢∞§¶•ªº keyboard alt tab seemed to work!
    For future reference, just do this and restart afterwards:
    [YourHardDrive]>>Users>>[YourUserName]>>>Library>>>Preferences>>>com.apple.symbo lichotkeys.plist>>>Delete that>>>Restart your Mac and you've fixed it.
    Cheers anyway!

  • Problem with the power key of the iphone 5 (ios 6.1.2)

    so... i've been having many problems with my iPhone 5's power key since two weeks.
    I bought it last dicember. I always have to click 10-15 times before the iPhone turns off or on...
    somebody says that that happens because of the software IOS 6.1.2 but I don't know...

    if it's under warrenty I would take it in

  • Problem with the primary key

    Hi All,
    I have a table with the same data repeating 2 times. I mean the rows are depating twice. so now I am creating primary key to the table. It is throwing me an error saying primary key voilation. I will provide the clear scenario.
    create table Employee(
    ID VARCHAR2(4 BYTE) NOT NULL,
    First_Name VARCHAR2(10 BYTE),
    Last_Name VARCHAR2(10 BYTE),
    Start_Date DATE,
    End_Date DATE,
    Salary Number(8,2),
    City VARCHAR2(10 BYTE),
    Description VARCHAR2(15 BYTE)
    insert into employee values ('01','Jason', 'Martin', to_date('19960725','YYYYMMDD'), to_date('20060725','YYYYMMDD'), 1234.56, 'Toronto', 'Programmer');
    insert into employee values ('02','Alison', 'Mathews', to_date('19760321','YYYYMMDD'), to_date('19860221','YYYYMMDD'), 6661.78, 'Vancouver','Tester');
    insert into employee values ('03','James', 'Smith', to_date('19781212','YYYYMMDD'), to_date('19900315','YYYYMMDD'), 6544.78, 'Vancouver','Tester');
    insert into employee values ('04','Celia', 'Rice', to_date('19821024','YYYYMMDD'), to_date('19990421','YYYYMMDD'), 2344.78, 'Vancouver','Manager');
    insert into employee values ('05','Robert', 'Black', to_date('19840115','YYYYMMDD'), to_date('19980808','YYYYMMDD'), 2334.78, 'Vancouver','Tester');
    insert into employee values ('07','David', 'Larry', to_date('19901231','YYYYMMDD'), to_date('19980212','YYYYMMDD'), 7897.78,'New York', 'Manager');
    insert into employee values ('06','Linda', 'Green', to_date('19870730','YYYYMMDD'), to_date('19960104','YYYYMMDD'), 4322.78,'New York', 'Tester');
    insert into employee values ('08','James', 'Cat', to_date('19960917','YYYYMMDD'), to_date('20020415','YYYYMMDD'), 1232.78,'Vancouver', 'Tester')
    insert into employee values ('07','David', 'Larry', to_date('19901231','YYYYMMDD'), to_date('19980212','YYYYMMDD'), 7897.78,'New York', 'Manager');
    insert into employee values ('06','Linda', 'Green', to_date('19870730','YYYYMMDD'), to_date('19960104','YYYYMMDD'), 4322.78,'New York', 'Tester');
    Now the table is with 10 columns
    ID FIRST_NAME LAST_NAME START_DAT END_DATE SALARY CITY DESCRIPTION
    01 Jason Martin 25-JUL-96 25-JUL-06 1234.56 Toronto Programmer
    02 Alison Mathews 21-MAR-76 21-FEB-86 6661.78 Vancouver Tester
    03 James Smith 12-DEC-78 15-MAR-90 6544.78 Vancouver Tester
    04 Celia Rice 24-OCT-82 21-APR-99 2344.78 Vancouver Manager
    05 Robert Black 15-JAN-84 08-AUG-98 2334.78 Vancouver Tester
    06 Linda Green 30-JUL-87 04-JAN-96 4322.78 New York Tester
    07 David Larry 31-DEC-90 12-FEB-98 7897.78 New York Manager
    08 James Cat 17-SEP-96 15-APR-02 1232.78 Vancouver ester
    Creating Primary key to the table
    "ALTER TABLE employee PRIMARY KEY ( ID, First_Name, Last_Name, Start_Date, End_Date,
    Salary, City, Description );"
    I am getting primary key voilation error
    IS THERE ANY WAY TO CREATE PRIMARY KEY ON THE TABLE WITH OUT DELETING THE DATA?
    iS IT POSSIBLE CREATING PRIMARY KEY BY USING 'GROUP BY' FUNCTION OR ANY OTHER FUNCTIONS?
    Edited by: user11872870 on Sep 23, 2010 5:41 PM

    user11872870 wrote:
    Actually there is a small mistake in the question. The table is having the data as
    ID FIRST_NAME LAST_NAME START_DAT END_DATE SALARY CITY DESCRIPTION
    01 Jason Martin 25-JUL-96 25-JUL-06 1234.56 Toronto Programmer
    02 Alison Mathews 21-MAR-76 21-FEB-86 6661.78 Vancouver Tester
    03 James Smith 12-DEC-78 15-MAR-90 6544.78 Vancouver Tester
    04 Celia Rice 24-OCT-82 21-APR-99 2344.78 Vancouver Manager
    05 Robert Black 15-JAN-84 08-AUG-98 2334.78 Vancouver Tester
    06 Linda Green 30-JUL-87 04-JAN-96 4322.78 New York Tester
    07 David Larry 31-DEC-90 12-FEB-98 7897.78 New York Manager
    08 James Cat 17-SEP-96 15-APR-02 1232.78 Vancouver ester
    05 Robert Black 15-JAN-84 08-AUG-98 2334.78 Vancouver "NULL"
    06 Linda Green 30-JUL-87 04-JAN-96 4322.78 New York "NULL"
    There is a null in the duplicate data.....
    As there is NULL in the data It is not allowing me to add the primary key to the table.....
    I am just looking if there is any other way to create primary key with the same data....the reason for the null not allowing you to have unique records is because null means "unknown". I could go into this in more depth but....
    ...again - we need to ask, why do you have linda green and robert black in there twice.
    if you really do need those two extra rows, then create another column with a unique ID using a sequence and make that the primary key. a primary key uniquely identifies a row. for this data I don't see any reason whatsoever to create a composite key like you are attempting.
    by trying to make the entire row a primary key it is clear your understanding is severely lacking.

  • Problems with the private key at email signing

    Error when running the app: org.bouncycastle.cms.CMSStreamException: Inappropriate key for signature.
    I'm trying to sign an email with a smart card using Java, mime type multipart / signed, when I do a debug the code without saving the
    message or without sending, there is no error or warning, or exception. But when I save or send the message out, I'm getting errors,
    inappropriate key .
    When I save the message:
    body.writeTo(new FileOutputStream("signed.message"));
    Whe I send the message:
    Transport.send(body);
    The error:
    Exception in thread "main" org.bouncycastle.cms.CMSStreamException: key inappropriate for signature.
    at org.bouncycastle.cms.CMSSignedDataStreamGenerator$CmsSignedDataOutputStream.close(Unknown Source)
    at org.bouncycastle.mail.smime.SMIMESignedGenerator$ContentSigner.write(Unknown Source)
    at org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source)
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
    at javax.activation.DataHandler.writeTo(DataHandler.java:302)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)
    at org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)
    at org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)
    at org.bouncycastle.mail.smime.handlers.multipart_signed.writeTo(Unknown Source)
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
    at javax.activation.DataHandler.writeTo(DataHandler.java:302)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1743)
    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1719)
    at javaemail.SignedMultipartEmailTest.main(SignedMultipartEmailTest.java:537)
    Caused by: java.security.InvalidKeyException: Supplied key (sun.security.mscapi.RSAPrivateKey) is not a RSAPrivateKey instance
    at org.bouncycastle.jce.provider.JDKDigestSignature.engineInitSign(Unknown Source)
    at java.security.SignatureSpi.engineInitSign(SignatureSpi.java:86)
    at java.security.Signature$Delegate.engineInitSign(Signature.java:1104)
    at java.security.Signature.initSign(Signature.java:498)
    at org.bouncycastle.cms.CMSSignedDataStreamGenerator$SignerInf.toSignerInfo(Unknown Source)
    ... 16 more
    Java Result: 1
    BUILD SUCCESSFUL
    In the code:
    PrivateKey key = (PrivateKey)keyStore.getKey(aliasNm, null);
    gen.addSigner(key, signCert, SMIMESignedGenerator.DIGEST_SHA1, new AttributeTable(signedAttrs), null);
    where key is the private key of the alias from signature certificate at smart card of type RSAPrivateKey type, according to the debugger
    but according to the javadoc returns Type Key but is forced to type PrivateKey which extends to the other.
    This line is like a example which I'm using, is a bouncy castle example, but with generated certificates, I changed to use certificates
    from smarct card.
    signCert is the certificate associated with key , certificate of SIGNATURE from smartcard.
    At the debugger:
    In the method keyStore.getKey() I'm using null instead of char[] password because is using the windows certificate store which store the
    certificates at the smart card and is getting the PIN with PIN dialogue, and is loading the keystore perfectly and I'm getting the
    certificates from smart card.
    I tried to use:
    PrivateKey key = (PrivateKey)keyStore.getKey(aliasNm, PIN_FROM_SMARTCARD);
    And I'm getting the same value when I use null.
    The value at the debugger is:
    (java.security.PrivateKey) (sun.security.mscapi.RSAPrivateKey) RSAPrivateKey [size=2048 bits, type=Signature,
    container=hexadecimal_number](the same hexadecimal number in both cases)
    Obviously we can see in the error:
    Caused by: java.security.InvalidKeyException: Supplied key (sun.security.mscapi.RSAPrivateKey) is not a RSAPrivateKey instance
    And we can see too:
    RSAPrivateKey de 2048 bits
    at the debugger, in the key value.
    I can't understand why I'm getting the error only when the message is saved, or sended.
    If the key was inappropriate I would receive an error, or an exception when I'm not sending or saving the message.
    These are one, of the last lines of the code that I'm hidding with //
    When I save the message:
    //body.writeTo(new FileOutputStream("signed.message"));
    Whe I send the message:
    //Transport.send(body);
    If I uncomment one of these lines, I'm receiving the errors, previously written above
    Any suggestion?
    Than you
    Regards

    Try to reset the device by pressing hold of the home and power button for 15-20 seconds and letting of when the Apple logo appears.

Maybe you are looking for

  • Excise Duty at the time of import

    How do I create an excise invoice for a particular item and vendor, without affecting the total value of the document or the vendor. This is because excise and customs are paid to govt and not to vendor.

  • Upgrading to Mavericks has damaged my bootcamp partition

    I had parallels installed a while back but deleted it because slowed my mac down so much.... I reinstalled it and am able to load Windows 8 under Parallels, but boot camp does not work.  I hate this because Bootcamp is the only way to run this system

  • Error with layers

    hey guys, i am soing some work here and i have a problem. i created a layer under my main layer that is used as a background , but there is an ugly effect , how fix that? it looks like the letters have an white stroke http://imageshack.us/scaled/land

  • HTTP sticky timeout issue in ACE .

    Hi All , We  are facing  the dis connectivity  issue in the the http session ( sticky configuration ) As per the customer requirement we  configured the  http sticky  with the connection time out 60 min ( one hour ) . But  as  per the test with  the

  • Security on Customer Exit

    Hello Experts, We have Created Customer Exit Variable and created Authorization variable on the Customer exit in BW, Is it supported in BOBJ, Will Security work on Customer Exit Variable in BOBJ?