summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.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/charselectdialog.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/charselectdialog.h')
-rw-r--r--src/gui/charselectdialog.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h
index 44917d6c..507b0d9f 100644
--- a/src/gui/charselectdialog.h
+++ b/src/gui/charselectdialog.h
@@ -30,6 +30,7 @@
#include "player.h"
#include <guichan/actionlistener.hpp>
+#include <guichan/keylistener.hpp>
class CharEntry;
class LocalPlayer;
@@ -45,7 +46,8 @@ class CharHandler;
*
* \ingroup Interface
*/
-class CharSelectDialog : public Window, public gcn::ActionListener
+class CharSelectDialog : public Window, public gcn::ActionListener,
+ public gcn::KeyListener
{
public:
friend class CharDeleteConfirm;
@@ -58,6 +60,8 @@ class CharSelectDialog : public Window, public gcn::ActionListener
void action(const gcn::ActionEvent &event);
+ void keyPressed(gcn::KeyEvent &keyEvent);
+
bool selectByName(const std::string &name);
void chooseSelected();