document.updateAndRepaint();
}
public void error(String string) {
// TODO: Remove chord from the argument list.
Chord chord = getKeyboardEventHandler().getChord();
setDocumentState(DocumentState.ECHO_ERROR);
message.setMessage(string);
// Note: Error responder is not finished until a key is pressed to
// clear the message.
if (chord!=null) {
// TODO: When called by mouse events, no ketUI.chord is given: fix.
chord.setComplete(false);
document.updateAndRepaint();
}
}