The International Simutrans Forum

Development => Bug Reports => Topic started by: Ranran(Hibernating) on March 29, 2022, 03:00:56 AM

Title: The navigate tab operation by the keyboard is broken
Post by: Ranran(Hibernating) on March 29, 2022, 03:00:56 AM
I was wondering if I could use the keyboard to navigate the tabs, and although there is such an intent in the code (https://github.com/aburch/simutrans/blob/0144db102df18c1e27208acad1e076b2a7a40753/src/simutrans/gui/components/gui_tab_panel.cc#L189), it doesn't seem to work right now.
Title: Re: The navigate tab operation by the keyboard is broken
Post by: prissi on May 31, 2022, 12:59:17 PM
Thank you. After some consideration, I chose TAB to change between tabs.
Title: Re: The navigate tab operation by the keyboard is broken
Post by: Roboron on May 31, 2022, 06:41:12 PM
That seems appropriate 😛
Title: Re: The navigate tab operation by the keyboard is broken
Post by: prissi on June 01, 2022, 01:40:55 PM
It is not perfect, since if there is an edit field, the first tab always activate the edit field and only then the tabs are changing.
Title: Re: The navigate tab operation by the keyboard is broken
Post by: Roboron on June 02, 2022, 06:54:40 PM
What about CTRL + TAB? I think this is what most browsers do for switching to the next tab (and CTRL+SHIFT+TAB for previous tab).