}
}
private void initializeKeyboardBindings() {
_keyboardShortcuts.addBinding(new KeyBinding('Z', true, false, false,
new Command() {
@Override
public void execute() {
_mindMapEditor.undo();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding('X', true, false, false,
new Command() {
@Override
public void execute() {
_mindMapEditor.cut();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding('V', true, false, false,
new Command() {
@Override
public void execute() {
_mindMapEditor.paste();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding(KeyCodes.KEY_LEFT, false,
false, false, new Command() {
@Override
public void execute() {
_mindMapEditor.navigateLeft();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding(KeyCodes.KEY_RIGHT, false,
false, false, new Command() {
@Override
public void execute() {
_mindMapEditor.navigateRight();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding(KeyCodes.KEY_UP, false,
false, false, new Command() {
@Override
public void execute() {
_mindMapEditor.navigateUp();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding(KeyCodes.KEY_DOWN, false,
false, false, new Command() {
@Override
public void execute() {
_mindMapEditor.navigateDown();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding(KeyCodes.KEY_DELETE,
false, false, false, new Command() {
@Override
public void execute() {
_mindMapEditor.deleteSelection();
}
}));
_keyboardShortcuts.addBinding(new KeyBinding(KeyCodes.KEY_ENTER, false,
false, false, new Command() {
@Override
public void execute() {
_mindMapEditor.enterTextMode(null);