From 8548bb75b66f871d1b6941ca9b79012e88274799 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 19 Aug 2013 11:26:51 +0200 Subject: GUIFormSpecMenu focus fixes --- src/guiFormSpecMenu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/guiFormSpecMenu.h') diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h index 640c35c0a..73c21b72d 100644 --- a/src/guiFormSpecMenu.h +++ b/src/guiFormSpecMenu.h @@ -212,6 +212,7 @@ public: } void removeChildren(); + void setInitialFocus(); /* Remove and re-add (or reposition) stuff */ @@ -225,6 +226,7 @@ public: ItemStack verifySelectedItem(); void acceptInput(); + bool preprocessEvent(const SEvent& event); bool OnEvent(const SEvent& event); int getListboxIndex(std::string listboxname); @@ -288,6 +290,7 @@ private: v2s32 basepos; int bp_set; v2u32 screensize; + std::wstring focused_fieldname; std::map listbox_selections; std::map listbox_scroll; } parserData; -- cgit v1.2.3