Processing Enter, Backspace, and Delete Keys

The Document Editor will automatically add, or merge Text Document Elements based on the selection of the Enter, Backspace, or Delete keys. This is to provide a text editing experience like a traditional text editor or word processing software.

For Text Elements, selecting the Enter Key while editing text within a sentence will automatically create and append a separate Text Document Element and place the cursor at the beginning of the line. Any text that exists after the cursor will be removed from the previous Text Document Element and pasted in the new Text Document Element. Similarly, when a Backspace Key is selected while the cursor is at the start of a Text Element will automatically cut the text from the current Document Element, paste it at the end of the previous Text Document Element, and remove the current Text Document Element. This operation is only done if there exists a preceding Text Document Element. The Delete Key executes in a similar way but only when the cursor is at the end of a Text Document Element and there exists a following, peer Text Document Element. Thus, these actions execute in a manner similar to how paragraphs are automatically split or merged in a typical text editor.

For Text Document Elements that are the last child of a List Item Document Element, selecting the Enter Key will result in the creation of a new List Item Element, with a Text Document Element child and place the cursor in the next Text Document Element. Any text that was after the previous cursor location will be cut and added to the new Text Document Element. Thus, these actions execute in a manner similar to how items in a list are created in a typical text editor.

Note
Key Event handling, such as identified above, needs to be explicitly enabled for each Document Type configured. Refer to the Technical Documentation Framework (TDF) Administrator’s Guide regarding Key Handling for a description of this process.