Fix Logic blocks so right-clicking give you the correct context menu.

Change-Id: Iad26cefda9312af0ff6a543159a140cc5894c2bd