summaryrefslogtreecommitdiff
path: root/src/gui/worldselectdialog.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-12-06 13:01:16 -0700
committerJared Adams <jaxad0127@gmail.com>2009-12-06 13:01:16 -0700
commitfc48c24c6d366e165cbcfbd022d9421790089890 (patch)
treeed264bca67ac2380f787765980ba1897ab43a93a /src/gui/worldselectdialog.h
parentc0e6ef1dd4941d689ea723542c4218179d688c7f (diff)
downloadmana-client-fc48c24c6d366e165cbcfbd022d9421790089890.tar.gz
mana-client-fc48c24c6d366e165cbcfbd022d9421790089890.tar.bz2
mana-client-fc48c24c6d366e165cbcfbd022d9421790089890.tar.xz
mana-client-fc48c24c6d366e165cbcfbd022d9421790089890.zip
Improve keyboard accessibility of login sequence
Enter and Escape now move forward and backwards for all dialogs except ServerSelectDialog (Escape quits) and CharSelectDialog (Enter doesn't do anything special).
Diffstat (limited to 'src/gui/worldselectdialog.h')
-rw-r--r--src/gui/worldselectdialog.h6
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;