onChange Event Triggers With No Change

I’ve inherited a database with an onChange event in a listbox in a Notes Client form. Recently I encountered unusual behavious with documents when I went back in and edited. This is caused by the onChange event triggering despite no change. I’ve been able to reproduce on a very basic form, I’m not sure if this expected behaviour.

Create a form with the first field as a listbox, add a text field just as somewhere to click to. Add code in the onChange event to produce an alert. Preview the form and select a value from the listbox - the alert is triggered, as I would expect. Leave the focus on the field, press F9 - no alert is triggered, because there is no change. Press F9 again with focus still on the field - the alert is triggered for this and any subsequent presses of F9.

If you move the focus outside of the listbox and press F9 as many times as required, then the onChange event is not triggered, as I would expect.

The triggering of the onChange on a second press of F9 the field has focus happens whether the listbox is set to refresh fields on keyword change or not. The document refresh would appear to be changing something in the field value, even though the Seq Num is not incremented, which would suggest no underlying change to the value stored to the document is made. Is this expected behaviour?

Thanks

Paul