MDL-36002 javascript: Fix keyboard drag/drop not opening win

This was caused by changes in MDL-39851.