Re: [patch] Renaming stops with cities
Reply #16 –
Did a quick test. Some comments: It would be much more logical if the buttons are displayed as soon as the inputfield has the cursor focus. That said, after clicking one of the buttons the inputfield should release the focus. I would also like the old behavior to stay: i.e. pressing enter renames the city.
gui_textinput_t calls its listeners when enter is pressed, so you can catch this event in action_triggered.
Edit: patch of stadt_info.cc attached, all other changes of your patch I did not touch.