How can you reassign a windows action to a key combination in Java? I want to basically share the default windows 'Page Down' action to a key combination such as 'control D'.
This is what I have so far:
KeyStroke addedKeyStroke = KeyStroke.getKeyStroke("control D");
getInputMap().put(addedKeyStroke, "page-down");
However, nothing happens when I press ctrl-L. Please could someone let me know what needs to be done to get this working?
Thanks,