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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user