From f5dfe6725a8f25bf53bf6dcce247f89bd5a26001 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 18 Feb 2014 02:34:20 +0100 Subject: GUI: Make GPL headers consistent in themselves. --- gui/dialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gui/dialog.cpp') diff --git a/gui/dialog.cpp b/gui/dialog.cpp index ffca15bbc8..ec392a877a 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * */ #include "common/rect.h" -- cgit v1.2.3 From 80d34a8a7cc6960006bc90f80686c2241f60226f Mon Sep 17 00:00:00 2001 From: Zerophase Date: Mon, 31 Mar 2014 00:43:54 -0500 Subject: GUI: Add Tab cycling to TabWidget Tab and Shift-Tab can now cycle between each Tab of the Edit Game menu. --- gui/dialog.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gui/dialog.cpp') diff --git a/gui/dialog.cpp b/gui/dialog.cpp index ec392a877a..fa4e508494 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -250,7 +250,18 @@ void Dialog::handleKeyDown(Common::KeyState state) { close(); } - // TODO: tab/shift-tab should focus the next/previous focusable widget + if (state.keycode == Common::KEYCODE_TAB) { + // TODO: Maybe add Tab behaviours for all widgets too. + // searches through widgets on screen for tab widget + Widget *w = _firstWidget; + while (w) { + if (w->_type == kTabWidget) + if (w->handleKeyDown(state)) + return; + + w = w->_next; + } + } } void Dialog::handleKeyUp(Common::KeyState state) { -- cgit v1.2.3