diff --git a/src/org/openstreetmap/josm/actions/SelectByInternalAction.java b/src/org/openstreetmap/josm/actions/SelectByInternalAction.java
new file mode 100644
index 0000000..36c10e8
--- /dev/null
+++ b/src/org/openstreetmap/josm/actions/SelectByInternalAction.java
@@ -0,0 +1,84 @@
+package org.openstreetmap.josm.actions;
+
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.coor.EastNorth;
+import org.openstreetmap.josm.data.osm.BBox;
+import org.openstreetmap.josm.data.osm.Node;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.data.osm.RelationMember;
+import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.tools.Geometry;
+
+import java.awt.event.ActionEvent;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.TreeMap;
+
+public class SelectByInternalAction extends JosmAction {
+
+    /**
+     * Returns the surrounding objects ordered by their size (ascending).
+     */
+    public static Collection<OsmPrimitive> getSurroundingObjects(EastNorth internalPoint) {
+        final Node n = new Node(internalPoint);
+        TreeMap<Double, OsmPrimitive> found = new TreeMap<>();
+        for (Way w : getCurrentDataSet().getWays()) {
+            if (w.isUsable() && w.isClosed()) {
+                if (Geometry.nodeInsidePolygon(n, w.getNodes())) {
+                    found.put(Geometry.closedWayArea(w), w);
+                }
+            }
+        }
+        for (Relation r : getCurrentDataSet().getRelations()) {
+            if (r.isUsable() && r.isMultipolygon()) {
+                if (Geometry.isNodeInsideMultiPolygon(n, r, null)) {
+                    for (RelationMember m : r.getMembers()) {
+                        if (m.isWay() && m.getWay().isClosed()) {
+                            found.values().remove(m.getWay());
+                        }
+                    }
+                    // estimate multipolygon size by its bounding box area
+                    BBox bBox = r.getBBox();
+                    EastNorth en1 = Main.map.mapView.getProjection().latlon2eastNorth(bBox.getTopLeft());
+                    EastNorth en2 = Main.map.mapView.getProjection().latlon2eastNorth(bBox.getBottomRight());
+                    double s = Math.abs((en1.east() - en2.east()) * (en1.north() - en2.north()));
+                    if (s == 0) s = 1e8;
+                    found.put(s, r);
+                }
+            }
+        }
+
+        return found.values();
+    }
+
+
+    /**
+     * Returns the smallest surrounding object.
+     */
+    public static OsmPrimitive getSmallestSurroundingObject(EastNorth internalPoint) {
+        final Collection<OsmPrimitive> surroundingObjects = getSurroundingObjects(internalPoint);
+        return surroundingObjects.isEmpty() ? null : surroundingObjects.iterator().next();
+    }
+
+    public static void performSelection(EastNorth internalPoint, boolean doAdd, boolean doRemove) {
+        final Collection<OsmPrimitive> surroundingObjects = getSurroundingObjects(internalPoint);
+        if (surroundingObjects.isEmpty()) {
+            return;
+        } else if (doRemove) {
+            final Collection<OsmPrimitive> newSelection = new ArrayList<>(getCurrentDataSet().getSelected());
+            newSelection.removeAll(surroundingObjects);
+            getCurrentDataSet().setSelected(newSelection);
+        } else if (doAdd) {
+            final Collection<OsmPrimitive> newSelection = new ArrayList<>(getCurrentDataSet().getSelected());
+            newSelection.add(surroundingObjects.iterator().next());
+            getCurrentDataSet().setSelected(newSelection);
+        } else {
+            getCurrentDataSet().setSelected(surroundingObjects.iterator().next());
+        }
+    }
+
+    @Override
+    public void actionPerformed(ActionEvent e) {
+    }
+}
diff --git a/src/org/openstreetmap/josm/gui/SelectionManager.java b/src/org/openstreetmap/josm/gui/SelectionManager.java
index 9256268..1245a8f 100644
--- a/src/org/openstreetmap/josm/gui/SelectionManager.java
+++ b/src/org/openstreetmap/josm/gui/SelectionManager.java
@@ -14,6 +14,8 @@ import java.beans.PropertyChangeListener;
 import java.util.Collection;
 import java.util.LinkedList;
 
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.SelectByInternalAction;
 import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
 import org.openstreetmap.josm.data.osm.Way;
@@ -148,7 +150,11 @@ public class SelectionManager implements MouseListener, MouseMotionListener, Pro
      */
     @Override
     public void mousePressed(MouseEvent e) {
-        if (e.getButton() == MouseEvent.BUTTON1) {
+        if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() > 1) {
+            SelectByInternalAction.performSelection(Main.map.mapView.getEastNorth(e.getX(), e.getY()),
+                    (e.getModifiersEx() & MouseEvent.SHIFT_DOWN_MASK) > 0,
+                    (e.getModifiersEx() & MouseEvent.CTRL_DOWN_MASK) > 0);
+        } else if (e.getButton() == MouseEvent.BUTTON1) {
             mousePosStart = mousePos = e.getPoint();
 
             lasso.reset();
