From fc48c24c6d366e165cbcfbd022d9421790089890 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 6 Dec 2009 13:01:16 -0700 Subject: 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). --- src/gui/serverdialog.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/serverdialog.h') diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index 943d69c9..d82e2613 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -30,6 +30,7 @@ #include "utils/mutex.h" #include +#include #include #include @@ -78,6 +79,7 @@ class ServersListModel : public gcn::ListModel */ class ServerDialog : public Window, public gcn::ActionListener, + public gcn::KeyListener, public gcn::SelectionListener { public: @@ -98,6 +100,8 @@ class ServerDialog : public Window, */ void action(const gcn::ActionEvent &event); + void keyPressed(gcn::KeyEvent &keyEvent); + /** * Called when the selected value changed in the servers list box. */ -- cgit v1.2.3-70-g09d2