How to stop repeated keyPressed() / keyReleased() events in Swing

前端 未结 5 594
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 14:42

So the problem that I am having appears to be a bug that occurs only on Linux. I\'m trying to have my swing app record when a key is pressed down, then to detect when that k

5条回答
  •  忘掉有多难
    2020-11-28 15:10

    This question is duplicated here.

    Here's a hack implemented as an AWTEventListener that can be installed at the start of the application.

提交回复
热议问题