Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7015209

Shift+arrrow does not work on windows 7.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 6u23
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_7

      Description

      Windows 7 Professional 64
      Lenovo T410 laptop

      Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
      Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

      Next code does not select the last char:

              JFrame frm = new JFrame();
              frm.getContentPane().add(new JTextField("some text"));
              frm.setSize(200, 200);
              frm.setVisible(true);
              new Thread(new Runnable() {
                  public void run() {
                      try {
                          try {
                              Thread.sleep(6000);
                          } catch (InterruptedException ex) {
                          }
                          Robot robot = new Robot();
                          robot.keyPress(java.awt.event.KeyEvent.VK_END);
                          robot.keyRelease(java.awt.event.KeyEvent.VK_END);
                          robot.keyPress(java.awt.event.KeyEvent.VK_SHIFT);
                          robot.keyPress(java.awt.event.KeyEvent.VK_LEFT);
                          robot.keyRelease(java.awt.event.KeyEvent.VK_LEFT);
                          robot.keyRelease(java.awt.event.KeyEvent.VK_SHIFT);
                      } catch (AWTException ex) {
                          ex.printStackTrace();
                      }
                  }
              }).start();

      Works fine on linux and windows versions other than 7.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dcherepanov Dmitry Cherepanov
                Reporter:
                shurailine Aleksandre Iline
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: