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

Button does not call action on enter key press

XMLWordPrintable

      When a Button control has focus on a Windows (Vista) machine, it is expected that by pressing the enter key on the keyboard, the buttons action function should be fired. At present, this is not the case - it appears that the only way to cause the action to fire is either through a mouse click or the space bar. Ideally the enter key will also have this effect when the button has focus.

      Of course it is possible to work around this by listening for keyboard events, but it is overkill as most people would expect the enter key to fire the action on a button.

      Cheers,
      Jonathan Giles

            kwwong Kinsley Wong (Inactive)
            jgiles Jonathan Giles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: