summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-16 19:53:58 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-16 19:53:58 +0300
commit78f40e3833b69b987678c66685ee9338d71806eb (patch)
tree8ce46cf066cef58fa003672bc2e809953196cbcf /src/gui/widgets/textfield.h
parentf18489753fb66394ca3683d070d1ba7b4494deb7 (diff)
downloadmanaplus-78f40e3833b69b987678c66685ee9338d71806eb.tar.gz
manaplus-78f40e3833b69b987678c66685ee9338d71806eb.tar.bz2
manaplus-78f40e3833b69b987678c66685ee9338d71806eb.tar.xz
manaplus-78f40e3833b69b987678c66685ee9338d71806eb.zip
fix gui shortcuts in SDL2 text fields.
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r--src/gui/widgets/textfield.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index 70a722e53..3942d610a 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -126,6 +126,16 @@ class TextField : public gcn::TextField,
void focusLost(const gcn::Event &event) override;
+ void moveCaretBack();
+
+ void moveCaretForward();
+
+ void caretDelete();
+
+ void caretDeleteToStart();
+
+ void caretDeleteWord();
+
protected:
void drawCaret(gcn::Graphics* graphics, int x) override final;