aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/controls/text_block.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-22 00:25:50 +0800
committercrupest <crupest@outlook.com>2018-09-22 00:25:50 +0800
commit9e66244ee15aff263716441c54d3cc53f27cddc4 (patch)
treef2cb20190d51dea8a36a9694d3f260aa9c0fe214 /CruUI/ui/controls/text_block.cpp
parente01800206050a0ed88cc4f4456fa3590021ab66f (diff)
downloadcru-9e66244ee15aff263716441c54d3cc53f27cddc4.tar.gz
cru-9e66244ee15aff263716441c54d3cc53f27cddc4.tar.bz2
cru-9e66244ee15aff263716441c54d3cc53f27cddc4.zip
Add focus on pressed.
Diffstat (limited to 'CruUI/ui/controls/text_block.cpp')
-rw-r--r--CruUI/ui/controls/text_block.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/CruUI/ui/controls/text_block.cpp b/CruUI/ui/controls/text_block.cpp
index fa5e6903..314870c5 100644
--- a/CruUI/ui/controls/text_block.cpp
+++ b/CruUI/ui/controls/text_block.cpp
@@ -139,7 +139,6 @@ namespace cru
Control::OnMouseDownCore(args);
if (is_selectable_ && args.GetMouseButton() == MouseButton::Left)
{
- RequestFocus();
selected_range_ = std::nullopt;
const auto hit_test_result = TextLayoutHitTest(text_layout_.Get(), args.GetPoint(this), true);
if (hit_test_result.has_value())