From 276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Jan 2014 23:32:02 +0300 Subject: In input fields add support for combinations Ctrl+left, Ctrl+right. --- src/gui/widgets/textfield.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gui/widgets/textfield.h') 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: -- cgit v1.2.3-70-g09d2