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.

 

Project Features

About this Project

ui was started in November 2009, is owned by Jiří Kovalský, and has 37 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close