clicking on render window triggers "A" button

Finally. Code is atrocious, but it's a start.