The International Simutrans Forum

Development => Bug Reports => Topic started by: Mishasama on March 27, 2026, 09:36:47 PM

Title: [r11913] Android can't close the window with "Back"
Post by: Mishasama on March 27, 2026, 09:36:47 PM
When the cursor in the text box is active, using the back button or gestures will only close the virtual keyboard, unlike other situations where the current window can be closed directly.

Additionally, triggering the back action after selecting text in a text box will delete the selected text, rather than simply closing the virtual keyboard or window.
Title: Re: [r11913] Android can't close the window with "Back"
Post by: prissi on March 28, 2026, 12:11:42 PM
This is handled from SDL as we do not handle that event (not even sure if it propagate). Simutrans is not even aware of a virtual keyboard, this is all SDLs doing.
Title: Re: [r11913] Android can't close the window with "Back"
Post by: Mishasama on March 29, 2026, 01:36:57 AM
Quote from: prissi on March 28, 2026, 12:11:42 PMThis is handled from SDL as we do not handle that event (not even sure if it propagate). Simutrans is not even aware of a virtual keyboard, this is all SDLs doing.
So... are we just supposed to wait for SDL3 to be released now?  ???
Title: Re: [r11913] Android can't close the window with "Back"
Post by: Yona-TYT on March 29, 2026, 01:49:02 AM
Quote from: Mishasama on Yesterday at 01:36:57 AMSo... are we just supposed to wait for SDL3 to be released now?  ???
SLD3 has been around between us, the problem is porting Simutrans there.  :P
Title: Re: [r11913] Android can't close the window with "Back"
Post by: Mishasama on March 29, 2026, 04:44:18 PM
Quote from: Yona-TYT on Yesterday at 01:49:02 AMSLD3 has been around between us, the problem is porting Simutrans there.  :P
Could we use AI to accomplish this task? It seems like another huge undertaking.  :o