Really weird eclipse keyboard behavior/bug?

前端 未结 22 986
失恋的感觉
失恋的感觉 2020-12-12 18:46

I am using Helios on Mac Snow Leopard. I don\'t know why but all of a sudden my arrow keys and delete button start not working only on Eclipse (so Eclipse ignores them) but

相关标签:
22条回答
  • 2020-12-12 19:19

    Just in case this helps someone... I accidentally got things working again by doing the following:

    1. Opened the offending file from the command line (I used 'vi').
    2. Made the edit I wanted to make and saved the file.
    3. Went back into Eclipse to refresh and redeploy my app.

    As soon as the editor (this was a JSP file, btw) refreshed, I once again had full use of arrow, delete, etc.

    YMMV

    • Jack
    0 讨论(0)
  • 2020-12-12 19:20

    Pressing left and right mouse buttons simultaneosly multiple times worked for me.

    0 讨论(0)
  • 2020-12-12 19:21

    If you see the same symptoms on Eclipse Windows, just press all your mouse buttons (including the wheel if you have one) at the same time together, and that seems to fix it.

    0 讨论(0)
  • 2020-12-12 19:21

    I got this same problem when I started using JRobot. In one piece of code I pressed the mouse but did not release. By releasing the mouse in a later piece of code I managed to solve the issue. You can recreate this problem using the code below. Release the mouse button to solve the issue.

    Robot robot;
    
    try {
     robot = new Robot();       
     robot.mousePress(InputEvent.BUTTON2_MASK);
     //robot.mouseRelease(InputEvent.BUTTON2_MASK);
    } catch (AWTException e1) {
    // TODO Auto-generated catch block
     e1.printStackTrace();
    }
    
    0 讨论(0)
  • 2020-12-12 19:22

    I have the suspicion that this happens after updating Java on my Mac. So after updating Java it seems to be a good idea to reboot the machine always.

    0 讨论(0)
  • 2020-12-12 19:23

    In Windows and Linux environments I have experienced such issues when the system believes a modifier key is pressed. By pressing and releasing all modifier keys the issues often perish. However, on OSX I did not experience such issues, so this might be entirely wrong.

    If the simple idea does not solve the issue, you could try to start a new workspace to see whether some preference causes the issue; or you could download a new Helios instance to check whether its working. I know, these are all serious issues, but may locate the problem.

    Otherwise, you shall take a look at the question asked not long ago about keyboard issues, maybe there is some hint how to solve it.

    0 讨论(0)
提交回复
热议问题