// get clicked entity
final Point2D location = screen.convertScreenViewToWorld(point);
// for the clicked entity....
final EntityView view = screen.getEntityViewAt(location.getX(), location.getY());
boolean doubleClick = Boolean.parseBoolean(WtWindowManager.getInstance().getProperty("ui.doubleclick", "false"));
if ((view != null) && view.isInteractive()) {
if (isCtrlDown()) {
view.onAction();
return true;
} else if (isShiftDown()) {
view.onAction(ActionType.LOOK);
return true;
} else if (!doubleClick) {
return view.onHarmlessAction();
}
} else if (windowWasActiveOnMousePressed && !isCtrlDown()) {
if (!doubleClick) {
createAndSendMoveToAction(location, false);
// let it pass "unhandled", so that the possible double click