From 34f08c0223db45203cb2de760b6a1edca76f39ee Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Mon, 21 May 2012 21:30:53 +0400 Subject: [PATCH] Handle the stocks screen in the focus strings. --- library/modules/Gui.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index f69e11778..2c4322286 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -391,6 +391,17 @@ DEFINE_GET_FOCUS_STRING_HANDLER(layer_assigntrade) focus += "/Items"; } +DEFINE_GET_FOCUS_STRING_HANDLER(stores) +{ + if (!screen->in_right_list) + focus += "/Categories"; + else if (screen->in_group_mode) + focus += "/Groups"; + else + focus += "/Items"; +} + + std::string Gui::getFocusString(df::viewscreen *top) { if (!top)