Creating and remapping dt/dd elements

Case 1: Behaviour of Enter key if the cursor is at the end of dt/dd

  • If the cursor is at the end of adt-element and Enter is pressed, a newdd-Element will be created as next sibling.
  • If the cursor is at the end of add-element and Enter is pressed, a newdt-Element will be created as next sibling.

Case 2: Behaviour of Enter key if the cursor is at the beginning of dt/dd

  • If the cursor is at the beginning of a dt-Element and Enter is pressed, a new dt will be created as previous sibling.
  • If the cursor is at the beginning of a dd-Element and Enter is pressed, a new dd will be created.

Case 3: Remapping dd to dt

In order to remap thedttodd, the cursor has to be somewhere inside a dt/dd. The remapping is done by clicking the dt/dd-toggle button.