Open checklist opened 8 years ago
Same problem here, did you find a workaround?
nope :-(
I certainly can't see how you would do this without modification of the library. But I wonder if using angular-hotkeys to register this functionality is the best approach? You have presumably got some other code that sets up the drag and drop functionality, so would that not be a more logical place to put additional code that modifies its behaviour? If you're listening for dragStart and dragEnd events you could easily add to their event handlers code to start and stop listening for keyup and keydown events and check those events for the ctrl key.
Found a workaround, it appears that if you declare the up event before the down, it works. See https://github.com/chieffancypants/angular-hotkeys/issues/150
Hi,
I want to add to our app the possiblity to switch from drag-n-drop to drag-n-copy when the CTRL button is clicked. I can easily hook to the clicking on the CTRL but I am not sure how to hook to the CTRL keyup. I basically need to tie the CTRL button being pressed to a true/false flag.
So I am using the action as follows:
But only the keyup is being picked and the keydown is being ignored. It seems like the second mapping overrides the first.
Any help would be appreciated.
Great lib and many thanx!