Really weird eclipse keyboard behavior/bug?

前端 未结 22 1022
失恋的感觉
失恋的感觉 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: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();
    }
    

提交回复
热议问题