diff options
Diffstat (limited to 'src/gui/worldselectdialog.h')
-rw-r--r-- | src/gui/worldselectdialog.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/worldselectdialog.h b/src/gui/worldselectdialog.h index 0b93e62e..acd00898 100644 --- a/src/gui/worldselectdialog.h +++ b/src/gui/worldselectdialog.h @@ -27,6 +27,7 @@ #include "net/worldinfo.h" #include <guichan/actionlistener.hpp> +#include <guichan/keylistener.hpp> #include <guichan/listmodel.hpp> #include <vector> @@ -38,7 +39,8 @@ class WorldListModel; * * \ingroup Interface */ -class WorldSelectDialog : public Window, public gcn::ActionListener { +class WorldSelectDialog : public Window, public gcn::ActionListener, + public gcn::KeyListener { public: /** * Constructor @@ -57,6 +59,8 @@ class WorldSelectDialog : public Window, public gcn::ActionListener { */ void action(const gcn::ActionEvent &event); + void keyPressed(gcn::KeyEvent &keyEvent); + private: WorldListModel *mWorldListModel; gcn::ListBox *mWorldList; |