Xojo2024R2.1: WebSearchField problem with Pressed event

I think there is a problem with the WebSearchField.Pressed event but I need someone to confirm. I use Safari as a browser.

The attached sample illustrates this issue. I begin to type something like “000” then using backspace and typing over again, slowly repeating key strokes, I don’t type the Return/Enter key but after few seconds I get my method executing (shows MessageBox) as if I have pressed Return on my keyboard. Note: I have timer on this page as well but it should not fire without explicitly me hitting Enter key. Perhaps I am missing something obvious here, perhaps not.

TestingSearchField.xojo_binary_project.zip (8.9 KB)

1 Like

Removed the timer, properties, etc.
I can confirm that Pressed event is firing by doing the following:

  • type 000
  • backspace 3 times
  • type abc (looks like it fires after b)

Gif:
screencast2024-08-1410AM-16-12-ezgif.com-video-to-gif-converter

Modified sample:
TestingSearchField2.xojo_binary_project.zip (8.2 KB)

Can you create an Issue for this? Thanks.

macOS 13.6.8 using Chrome

That definitely looks like a bug, sorry about that. Could you please create an issue? :pray:

1 Like

Issue created:
#77110 - WebSearchField firing Pressed event for unknown reason

2 Likes

I shall have few more votes coming soon.

I agree it looks like a bug. I notice that your sample project has this:

Sub TextChanged() Handles TextChanged
  Me.Value = Me.Text.Uppercase
End Sub

If I comment out that line, then the .Pressed event no longer fires unexpectedly.

That is what crossed my mind too, hence I have left this part in the sample project.