diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-14 21:51:42 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-14 21:51:42 +0200 |
commit | 52f8dc5d05f5e34b0a3cf4bb4e4fe607f06965c5 (patch) | |
tree | 338a4a83685e0f0c7805ef3a884bec8274949f93 /src/Entry.cpp | |
parent | a3843702b93513052e1e167d52f232b5a5301bd0 (diff) |
Better G key behavior in matrix, add ctrl+g for encrypt reply, load mpris from system path if available for videos
Diffstat (limited to 'src/Entry.cpp')
-rw-r--r-- | src/Entry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |