This line is bogus. Capture is released by releasing the mouse pointer, not by pressing the button.