From 7be210036e363f2105ace761451448507d4b06d8 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 17 Nov 2021 18:53:48 +0800 Subject: ... --- src/ui/CMakeLists.txt | 1 - src/ui/controls/TextHostControlService.cpp | 10 ++++++++-- src/ui/helper/BorderStyle.cpp | 0 3 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 src/ui/helper/BorderStyle.cpp (limited to 'src') diff --git a/src/ui/CMakeLists.txt b/src/ui/CMakeLists.txt index 5d813911..35c3581f 100644 --- a/src/ui/CMakeLists.txt +++ b/src/ui/CMakeLists.txt @@ -25,7 +25,6 @@ add_library(cru_ui STATIC controls/TextHostControlService.cpp controls/Window.cpp events/UiEvent.cpp - helper/BorderStyle.cpp helper/ClickDetector.cpp helper/ShortcutHub.cpp host/LayoutPaintCycler.cpp diff --git a/src/ui/controls/TextHostControlService.cpp b/src/ui/controls/TextHostControlService.cpp index 740fa447..42153ffd 100644 --- a/src/ui/controls/TextHostControlService.cpp +++ b/src/ui/controls/TextHostControlService.cpp @@ -95,11 +95,17 @@ TextControlMovePattern TextControlMovePattern::kCtrlEnd( TextControlMovePattern TextControlMovePattern::kPageUp( helper::ShortcutKeyBind(platform::gui::KeyCode::PageUp), [](TextHostControlService* service, StringView text, - gsl::index current_position) { return current_position; }); + gsl::index current_position) { + // TODO: Implement this. + return current_position; + }); TextControlMovePattern TextControlMovePattern::kPageDown( helper::ShortcutKeyBind(platform::gui::KeyCode::PageDown), [](TextHostControlService* service, StringView text, - gsl::index current_position) { return current_position; }); + gsl::index current_position) { + // TODO: Implement this. + return current_position; + }); std::vector TextControlMovePattern::kDefaultPatterns = { TextControlMovePattern::kLeft, TextControlMovePattern::kRight, diff --git a/src/ui/helper/BorderStyle.cpp b/src/ui/helper/BorderStyle.cpp deleted file mode 100644 index e69de29b..00000000 -- cgit v1.2.3