Optionnaly use click or longpress for queries