How do we make key bindings for a JFrame regardless of what's in focus in the frame?
I already looked at this question: How do you make key bindings for a java.awt.Frame?
I tried setting the input map for the root pane of the JFrame, but it doesn't work when the focus is on a JTextArea even though editable is false.
What's the easiest way to make key bindings work across an entire JFrame?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…