diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-14 01:07:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-14 01:07:23 +0300 |
commit | 035cc92ee2a435ff1d663e2037f543578dd2578a (patch) | |
tree | 084cc6998c99fd66100108428ea6bbb615af8ca7 /src/gui/widgets/button.h | |
parent | 8bb2cb1e077ded2837be80cb4efa75391317de42 (diff) | |
download | manaplus-035cc92ee2a435ff1d663e2037f543578dd2578a.tar.gz manaplus-035cc92ee2a435ff1d663e2037f543578dd2578a.tar.bz2 manaplus-035cc92ee2a435ff1d663e2037f543578dd2578a.tar.xz manaplus-035cc92ee2a435ff1d663e2037f543578dd2578a.zip |
Block enter key from pressing active button.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r-- | src/gui/widgets/button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index 6585d9850..8e4cdd9e6 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -113,6 +113,10 @@ class Button : public gcn::Button, public gcn::WidgetListener void setCaption(const std::string& caption); + void keyPressed(gcn::KeyEvent &keyEvent); + + void keyReleased(gcn::KeyEvent &keyEvent); + private: void init(); |