Implement insert by middle mouse button