getSelection().setOnly(current);
return true;
}
public boolean startOrStopRecordingMacro(Chord chord) {
Macros macros = getDocument().getKeyboardEventHandler().getMacros();
if ( ! macros.isRecordingMacro()) {
// Record a macro.
chord.setComplete(false);
modes.setDocumentState(DocumentState.RECORD_MACRO);
} else {
// Stop recording the macro.
macros.stopRecordingMacro();
}
return false;
}