aboutsummaryrefslogtreecommitdiff
path: root/src/MessageBoard.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-06 17:15:51 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-06 17:18:19 +0200
commit7a2cb2c4b81a8a0696d3a11ce8781542f181bb12 (patch)
tree0d77fa05f4a99c4c1ff06f12ba76fae62550fc9b /src/MessageBoard.cpp
parentb2f6a0235c5de32a3fcd359e28f4d1e3bd6950df (diff)
Make dchat Text editable
Not finished yet. Currently text can be entered, removed and you can move caret using arrow keys (up, down, left, right), home and end. Need to implement text selection and remove focus from chatbar when editing message board text. Chatbar should be replaced with dchat Text for proper multiline editable text.
Diffstat (limited to 'src/MessageBoard.cpp')
-rw-r--r--src/MessageBoard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MessageBoard.cpp b/src/MessageBoard.cpp
index cee3e50..d73dc84 100644
--- a/src/MessageBoard.cpp
+++ b/src/MessageBoard.cpp
@@ -238,6 +238,11 @@ namespace dchat
selectingTextStart.x = mousePos.x;
selectingTextStart.y = mousePos.y;
}
+
+ for(Message *message : messages)
+ {
+ message->text.processEvent(event);
+ }
}
void MessageBoard::draw(sf::RenderWindow &window, Cache &cache)