In Java 6/7, there is an error in OSX where, during drag and drop operations, it ignores the META key (CMD). (The Ctrl key works fine on Windows, the Ctrl key also ignores OSX) I really need this to work.
See: Java Drag and Drop in OS X Reports Moving Instead of Copying
I tried to add a KeyEventDispatcher listener to the KeyboardFocusManager, but this is not called during the drag operation.
Also, the processKeyEvent () method of the parent JPanel is not called.
So, is there a place where I can put a hook to detect META key presses?
java swing drag-and-drop keyevent macos
CasaDelGato
source share