Skip to content

Instantly share code, notes, and snippets.

@drewbrokke
Last active August 29, 2015 14:04
Show Gist options
  • Save drewbrokke/63df8c24c2b9cf20fbec to your computer and use it in GitHub Desktop.
Save drewbrokke/63df8c24c2b9cf20fbec to your computer and use it in GitHub Desktop.

Tree View Drag & Drop Considerations

Requirements:

  • Need to use the arrow keys to re-position items
  • Should be able to drag and drop items between trees

Restrictions:

  • Need to keep each node non-tabbable
  • Should not highlight non-valid drop targets

Arrow Keys:

  • Up/down will highlight drop targets on the same level
  • Left/right will promote/demote drop target highlight

Placeholder:

  • Tree view currently uses a dotted line as a placeholder, possibly update?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment