public class TextActions extends DefaultActionExecutor {
public static final TextActions INSTANCE = new TextActions();
private TextActions() {
addAction(CommonActions.SPLIT_LINE, new Shortcut(){
@Override
public boolean event(InputScheme scheme, SignalEvent event) {
splitLine(scheme.getInputController().getEditor());
return true;
}
});
addAction(CommonActions.START_NEW_LINE, new Shortcut(){
@Override
public boolean event(InputScheme scheme, SignalEvent event) {
startNewLine(scheme.getInputController().getEditor());
return true;
}