summaryrefslogtreecommitdiff
path: root/src/gui/itemamount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemamount.h')
-rw-r--r--src/gui/itemamount.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/itemamount.h b/src/gui/itemamount.h
index 1ae3f0d5..312b9fc3 100644
--- a/src/gui/itemamount.h
+++ b/src/gui/itemamount.h
@@ -24,6 +24,7 @@
#include "gui/widgets/window.h"
+#include <guichan/keylistener.hpp>
#include <guichan/actionlistener.hpp>
class IntTextField;
@@ -34,7 +35,8 @@ class Item;
*
* \ingroup Interface
*/
-class ItemAmountWindow : public Window, public gcn::ActionListener
+class ItemAmountWindow : public Window, public gcn::ActionListener,
+ public gcn::KeyListener
{
public:
enum Usage {
@@ -60,6 +62,8 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
*/
void close();
+ void keyReleased(gcn::KeyEvent &keyEvent);
+
/**
* Creates the dialog, or bypass it if there aren't enough items.
*/