User Interface Specification:
Start New Line & Split Line actions
Author: Gabriel Tichy
$Revision: 1.1 $
- Table of Contents:
Introduction
This specification describes two simple keyboard actions: Start New Line, Split
Line. These actions are useful variations of the Insert newline action.
Detailed Specification
Two global editor actions are introduced:
| Name |
Shortcut |
Action name |
| Start New Line |
Shift+Enter |
[start-line] |
| Split Line |
Ctrl+Enter |
[split-line] |
Shift+Enter In Action
Before

After

- adds a new line and moves caret on that; in fact it means: move the caret
to end of line and insert new line then.
- original line is not affected at all
- apparently, indentation works as usually
Ctrl+Enter In Action
Before

After

- splits the line on a position of the caret, i.e. it behaves like normal
Enter, but without moving of the caret
- apparently, indentation works as usually
Undo
Undo is working exactly in the opposite direction for both actions.