Only activate drag&drop in command mode

The Drag&Drop should only work when in command mode, in edit mode,
handling by CodeMirror is fine.