summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-07 23:32:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-07 23:32:02 +0300
commit276a5f9f7ef2f1fd5fad7339db2d2a9154ce9870 (patch)
treeb3e2aa22629dab18547b0b98a1a0f48a4f2217e9 /src/gui/widgets/textfield.h
parentcce1a905f8d798eb689956395daf6161f034ae6f (diff)
downloadManaVerse-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.h12
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: