diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-12-06 13:01:16 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-06 13:01:16 -0700 |
commit | fc48c24c6d366e165cbcfbd022d9421790089890 (patch) | |
tree | ed264bca67ac2380f787765980ba1897ab43a93a /src/gui/updatewindow.h | |
parent | c0e6ef1dd4941d689ea723542c4218179d688c7f (diff) | |
download | mana-fc48c24c6d366e165cbcfbd022d9421790089890.tar.gz mana-fc48c24c6d366e165cbcfbd022d9421790089890.tar.bz2 mana-fc48c24c6d366e165cbcfbd022d9421790089890.tar.xz mana-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/updatewindow.h')
-rw-r--r-- | src/gui/updatewindow.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h index 6e738fca..8388b722 100644 --- a/src/gui/updatewindow.h +++ b/src/gui/updatewindow.h @@ -29,6 +29,7 @@ #include "utils/mutex.h" #include <guichan/actionlistener.hpp> +#include <guichan/keylistener.hpp> #include <string> #include <vector> @@ -43,7 +44,8 @@ class ScrollArea; * * \ingroup GUI */ -class UpdaterWindow : public Window, public gcn::ActionListener +class UpdaterWindow : public Window, public gcn::ActionListener, + public gcn::KeyListener { public: /** @@ -84,6 +86,8 @@ class UpdaterWindow : public Window, public gcn::ActionListener void action(const gcn::ActionEvent &event); + void keyPressed(gcn::KeyEvent &keyEvent); + void logic(); int updateState; |