Search in sources :

Example 1 with ActionAcceleratorManager

use of org.freeplane.core.ui.ActionAcceleratorManager in project freeplane by freeplane.

the class MapViewScrollPane method processKeyBinding.

@Override
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) {
    if (viewport != null) {
        MapView mapView = (MapView) viewport.getView();
        final ActionAcceleratorManager acceleratorManager = ResourceController.getResourceController().getAcceleratorManager();
        if (acceleratorManager.canProcessKeyEvent(e))
            return false;
    }
    return super.processKeyBinding(ks, e, condition, pressed);
}
Also used : ActionAcceleratorManager(org.freeplane.core.ui.ActionAcceleratorManager)

Aggregations

ActionAcceleratorManager (org.freeplane.core.ui.ActionAcceleratorManager)1