We created a desktoptextfield class in 2026r2.1 that will advance to the next field when the enter key is pressed; however, this class will not work in 2026r3. Anyone else have an issue like this? We really can’t find a way to fix it in 2026r3.
Which platform are you experiencing this issue on?
If you create a sample project, other people can test.
You can zip it and upload to your post.
No need, it was a dumb error on our part. However, it was true that what worked in 2026r2.1 caused an error in 2026r3, but it was a pretty easy fix.
Care to give that fix to all ?
I am attaching a project that will demonstrate the issue. This resulted in another application that has a password sign on screen. If the password is entered correctly, it closes the window immediately.
I’m guessing you would only encounter this issue if you only have a window like this. That’s what made it so unusual. Keep in mind that you do not get an error in 2026r2.1 with this project as is, but you will get an error in 2026r3. You’ll find the fix for 2026r3 in the HasDefaultButton method in the App and it is currently commented out.
TextFieldIssue.zip (27.3 KB)
Interesting bug.
The root cause is that inside a TextField.KeyDown event, me.Window = nil, which shouldn’t be possible.
I think this is triggered because the Window is created like this:
Window2.Button1.Pressed calls Window1.Startup, and Window1.Startup calls me.ShowModal()
My hunch is that this does something weird with Window1’s instantiation so that some of the controls have no .Window() value.
Here’s a snapshot in the debugger - notice that the keydown event is happening within the ShowModal call, so it’s an unusual stack trace:
This implies one can break in an event of the window, inspect its controls, and they don’t have a window property either, correct? (or it “only” happens from within the control’s own events?)
Do all the controls have no window, or only some?
It was our assumption that the 2026r3 version of Xojo Window control is more asynchronous than the prior versions. I think we saw something to that affect in the notes for the newest version.
