java - How to adjust or deviate from the default JavaFX transfer mode behavior -


i have implemented drag , drop in javafx. both drag source , destination happy support both copy , move transfer modes, use transfermode.copy_or_move on both ends.

in case, believe javafx correctly defaults using copy transfer mode default. base correctness on ux question , answer, although seems clear there may not absolute standard. javafx switch move transfer mode if shift key pressed.

nonetheless, prefer move default , copy engaged via key modifier. have searched web, , in code, can find no way adjust default behavior. know way? tried using individual transfer mode enums in case order matters, didn't work either.

i have further considered attempting capture key event, , either accept move or copy @ destination based on modifier might down. however, concern whether destination have focus , whether key event propagate during drag. try approach, decided ask if here knew of alternative (or if perhaps ability change default come in java 9).

thanks!


Comments