aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/TextHostControlService.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-12-13 21:06:22 +0800
committercrupest <crupest@outlook.com>2021-12-13 21:06:22 +0800
commit522cdc4fdbf701fe4ace02af5e891f884f14dc25 (patch)
tree9a4bddeb87df32bda140e48eb60e03cd6cad2ef7 /src/ui/controls/TextHostControlService.cpp
parent419a09298abcba851313c2160cc00e24b48850fc (diff)
downloadcru-522cdc4fdbf701fe4ace02af5e891f884f14dc25.tar.gz
cru-522cdc4fdbf701fe4ace02af5e891f884f14dc25.tar.bz2
cru-522cdc4fdbf701fe4ace02af5e891f884f14dc25.zip
...
Diffstat (limited to 'src/ui/controls/TextHostControlService.cpp')
-rw-r--r--src/ui/controls/TextHostControlService.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/controls/TextHostControlService.cpp b/src/ui/controls/TextHostControlService.cpp
index bdb198d9..26484ae6 100644
--- a/src/ui/controls/TextHostControlService.cpp
+++ b/src/ui/controls/TextHostControlService.cpp
@@ -461,6 +461,8 @@ void TextHostControlService::MouseDownHandler(
args.GetPointToContent(text_render_object));
const auto position = result.position + (result.trailing ? 1 : 0);
SetSelection(position);
+ } else if (args.GetButton() == mouse_buttons::right) {
+ // TODO: Finish context menu logic here.
}
}
}