diff options
author | uruk | 2014-04-29 11:26:39 +0200 |
---|---|---|
committer | uruk | 2014-04-29 11:26:39 +0200 |
commit | 5b105566a5637edcf73fd6cbc690c1b3b958ff2a (patch) | |
tree | 9b35a6c244e5f9fb7b01be1e6e1da994852534e2 /gui/dialog.cpp | |
parent | ec71f936280496d349310ea0091dbe26b90ae540 (diff) | |
parent | 55127114349219d57b7a9143a5d3d9bfd97e3e88 (diff) | |
download | scummvm-rg350-5b105566a5637edcf73fd6cbc690c1b3b958ff2a.tar.gz scummvm-rg350-5b105566a5637edcf73fd6cbc690c1b3b958ff2a.tar.bz2 scummvm-rg350-5b105566a5637edcf73fd6cbc690c1b3b958ff2a.zip |
Merge remote-tracking branch 'origin/master' into cge2
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r-- | gui/dialog.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
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) { |