summaryrefslogtreecommitdiff
path: root/src/gui/charcreatedialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-22 18:45:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-22 18:45:55 +0300
commit9128a4b2466259956a56fbc953e1be050faad319 (patch)
tree3cbc3d2d1c059004c2ae7aabcdf7fc5c9e62ddcd /src/gui/charcreatedialog.h
parentd32d2c9b6555201aeda94e657357803f2f9a9a70 (diff)
downloadplus-9128a4b2466259956a56fbc953e1be050faad319.tar.gz
plus-9128a4b2466259956a56fbc953e1be050faad319.tar.bz2
plus-9128a4b2466259956a56fbc953e1be050faad319.tar.xz
plus-9128a4b2466259956a56fbc953e1be050faad319.zip
Improve keyboard handling in create character dialog.
Diffstat (limited to 'src/gui/charcreatedialog.h')
-rw-r--r--src/gui/charcreatedialog.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.h b/src/gui/charcreatedialog.h
index 15fdf7466..408297adc 100644
--- a/src/gui/charcreatedialog.h
+++ b/src/gui/charcreatedialog.h
@@ -31,6 +31,7 @@
#include "gui/widgets/window.h"
#include <guichan/actionlistener.hpp>
+#include <guichan/keylistener.hpp>
class LocalPlayer;
class PlayerBox;
@@ -41,7 +42,9 @@ class TextField;
*
* \ingroup Interface
*/
-class CharCreateDialog : public Window, public gcn::ActionListener
+class CharCreateDialog : public Window,
+ public gcn::ActionListener,
+ public gcn::KeyListener
{
public:
/**
@@ -71,6 +74,8 @@ class CharCreateDialog : public Window, public gcn::ActionListener
void updatePlayer();
+ void keyPressed(gcn::KeyEvent &keyEvent);
+
private:
int getDistributedPoints() const;