Opened 6 years ago

Closed 21 months ago

#1616 closed enhancement (wontfix)

Backspace in nested lists should dedent to parent list

Reported by: ejucovy Owned by: ejucovy
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description (last modified by ejucovy)

When using nested lists, if the cursor is at the start of a list item, pressing backspace should dedent that list item, one level per keypress, until it is at the same level as the preceding list item. Only then should the current behavior (browser default) kick in: list item itself removed, with its contents collapsed into the preceding list item if present, or removed from the list itself if there is no previous sibling in the list.

Case 0

  • Point 1
  • Point 2

Pressing backspace with the cursor at ^Point 1 should cause "Point 1" to precede the list altogether. The list should then start with "Point 2" as its first list item.

(Pressing backspace with the cursor at ^Point 2 should cause "Point 2" to follow the list altogether. The list should then end with "Point 1" as its last list item.

Case 1

  • Point 1
    • Subpoint 1
    • Subpoint 2

Pressing backspace with the cursor at ^Subpoint 2 should result in "* Subpoint1 Subpoint 2". (This case is almost handled correctly, but no space is inserted; you end up with "* Subpoint 1Subpoint 2".)

Case 2

  • Point 1
    • Subpoint 1
    • Subpoint 2

Pressing backspace with the cursor at ^Subpoint 1 should result in

  • Point 1
  • Subpoint 1
    • Subpoint 2

(Pressing backspace a second time without moving the cursor would be an instance of Case 1.)

Case 3

  • Point 1
      • Subpoint 1
    • Subpoint 2

Pressing backspace with the cursor at ^Subpoint 1 should result in

  • Point 1
    • Subpoint 1
    • Subpoint 2

Change History (3)

comment:1 Changed 6 years ago by ejucovy

  • Description modified (diff)

comment:2 Changed 6 years ago by ejucovy

  • Description modified (diff)
  • Owner changed from gogo to ejucovy
  • Status changed from new to assigned

Actually I think some of these are wrong... assigning to myself to rethink.

comment:3 Changed 21 months ago by gogo

  • Resolution set to wontfix
  • Status changed from assigned to closed

Not required now ListOperations? is available for tab/shift-tab

Note: See TracTickets for help on using tickets.