this.command = command;
}
@Override
public void handle(KeyType type, int[] sequence) {
KeyHandler keyHandler = process.getKeyHandler();
if (keyHandler != null) {
CRaSHConnector.log.fine("Processing key event " + type + " " + Arrays.toString(sequence));
try {
keyHandler.handle(type, sequence);
}
catch (Exception e) {
CRaSHConnector.log.log(Level.SEVERE, "Processing key handler " + keyHandler + " threw an exception", e);
}
}