1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-16 18:05:22 +02:00

Formspec: Implement Ctrl+Shift+Left/Right text selection (#16455)

This is a quality-of-life improvement to edit text more easily.
This commit is contained in:
SmallJoker
2025-09-04 18:58:46 +02:00
committed by GitHub
parent 024e1d2d27
commit d24a7001ab
2 changed files with 58 additions and 30 deletions

View File

@@ -135,6 +135,10 @@ protected:
virtual s32 getCursorPos(s32 x, s32 y) = 0;
bool processKey(const SEvent &event);
//! KEY_LEFT / KEY_RIGHT inputs
void processKeyLR(const SEvent::SKeyInput &input, s32 &new_mark_begin,
s32 &new_mark_end);
virtual void inputString(const core::stringw &str);
virtual void inputChar(wchar_t c);