From 52f8dc5d05f5e34b0a3cf4bb4e4fe607f06965c5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 14 Jun 2025 21:51:42 +0200 Subject: Better G key behavior in matrix, add ctrl+g for encrypt reply, load mpris from system path if available for videos --- src/Entry.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Entry.cpp') diff --git a/src/Entry.cpp b/src/Entry.cpp index 5416724..8aa2bba 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -107,6 +107,10 @@ namespace QuickMedia { return text.getCaretIndex(); } + void Entry::set_caret_index(int index) { + text.setCaretIndex(index); + } + void Entry::set_position(const mgl::vec2f &pos) { background.set_position(pos); text.set_position(pos + mgl::vec2f(background_margin_horizontal * padding_scale, background_margin_vertical * padding_scale - (float)text.get_character_size() * 0.3f).floor()); -- cgit v1.2.3-70-g09d2