- All Implemented Interfaces:
- Serializable
public class RedirectInputMap
extends ComponentInputMap
Make shortcuts from main window work in dialog windows.
It's not possible to simply set component input map parent to be Main.contentPane.getInputMap
because there is check in setParent that InputMap is for the same component.
Yes, this is a hack.
Another possibility would be simply copy InputMap, but that would require to
keep copies synchronized when some shortcuts are changed later.
- See Also:
- Serialized Form