diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-07 23:32:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-07 23:32:02 +0300 |
commit | 276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870 (patch) | |
tree | b3e2aa22629dab18547b0b98a1a0f48a4f2217e9 /src/gui/widgets/textfield.h | |
parent | cce1a905f8d798eb689956395daf6161f034ae6f (diff) | |
download | manaverse-276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870.tar.gz manaverse-276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870.tar.bz2 manaverse-276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870.tar.xz manaverse-276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870.zip |
In input fields add support for combinations Ctrl+left, Ctrl+right.
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r-- | src/gui/widgets/textfield.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h index 675e9761d..abff9cf2a 100644 --- a/src/gui/widgets/textfield.h +++ b/src/gui/widgets/textfield.h @@ -131,6 +131,10 @@ class TextField : public gcn::TextField, void moveCaretForward(); + void moveCaretWordBack(); + + void moveCaretWordForward(); + void caretDelete(); void caretDeleteToStart(); @@ -146,6 +150,14 @@ class TextField : public gcn::TextField, bool mSendAlwaysEvents; + bool handleNormalKeys(const int action, bool &consumed); + + void handleCtrlKeys(const int action, bool &consumed); + +#ifndef USE_SDL2 + void handleSDLKeys(const int val, bool &consumed); +#endif + static Skin *mSkin; private: |