Closed HydrolienF closed 3 years ago
Je pense que j'ai trouver ce qu'il nous faut la bas https://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html "JComponent.WHEN_IN_FOCUSED_WINDOW The component's window either has the focus or contains the component that has the focus. This input map is commonly used for mnemonics or accelerators, which need to be active regardless of where focus is in the window." Autrement dit on récupère l'info de clic sur une touche dès lors que la fenetre java est active (= au 1a plan)
Linked to #134
S'arrangé pour que l'écoute clavier ne soit pas lié au dernier élément graphique cliqué.