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

Java Windows Do Not Accept Keyboard Focus with Accessibility Feature

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      I use the Windows Accessibility feature, where a window becomes activated simply by moving the mouse to it, and gives it the keyboard focus. This allows me to type into the window without having to click on it to activate it.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1) Activate the feature by:
      > Open the Control Panel by searching for it in the Start menu.
      > Click on the "Ease of Access Center" icon.
      > Click on the "Make the mouse easier to use" link.
      > In the "Make it easier to manage windows" section, check the box labeled "Activate a window by hovering over it with the mouse."
      > Click on "Apply" and then "OK" to save the changes.
      > You may have to log out and log back in.
      2) You should observe that you can type in different native windows by moving the mouse and typing.
      3) If you move from a native window that had keyboard focus to a Java window, the task bar will flash, and the Java window will not accept keyboard input.

      Note: this does not happen when using very old JREs (i.e. 1.6)


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expected that the Java window would behave the same as a native window, in that it would accept the keyboard focus.
      ACTUAL -
      Instead, the task bar flashes, and the Java window does not accept keyboard input.

      ---------- BEGIN SOURCE ----------
      This issue will arise with any Java program that accepts keyboard input. I've observed it with MATLAB, Eclipse, and jEdit.
      ---------- END SOURCE ----------

        1. Recording.mp4
          14.39 MB
        2. Reproducer.mp4
          33.92 MB

            abhiscxk Abhishek Kumar
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: