When i reproduced the test failures locally on Ubuntu 18 it seems like AWT Frame
that appeared on the screen had not received focus and keyboard events went to 
the
Window Manager which ignored them for having no meaning in the current context.
Added explicit toFront and requestFocus calls so window gets focused.

-------------

Commit messages:
 - 8169474: KeyCharTest: Wrong number of key events: 0

Changes: https://git.openjdk.java.net/jdk/pull/6161/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6161&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8169474
  Stats: 34 lines in 2 files changed: 25 ins; 5 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6161.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6161/head:pull/6161

PR: https://git.openjdk.java.net/jdk/pull/6161

Reply via email to