Figured it out.
You have to have the mouse cursor over the box when pressing the button.
Simple, but it didn't occur to me at first.