1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-28 11:45:29 +01:00

IrrlichtMt: Implement Page Up/Down navigation on edit boxes (#16654)

This commit is contained in:
SmallJoker
2025-11-22 09:47:38 +01:00
committed by GitHub
parent d959692967
commit 5f49deb239
2 changed files with 66 additions and 57 deletions

View File

@@ -167,9 +167,9 @@ protected:
//! KEY_LEFT / KEY_RIGHT inputs
void processKeyLR(const SEvent::SKeyInput &input, s32 &new_mark_begin,
s32 &new_mark_end);
bool onKeyUp(const SEvent &event, s32 &mark_begin, s32 &mark_end);
bool onKeyDown(const SEvent &event, s32 &mark_begin, s32 &mark_end);
//! Up, Down, Page Up, Page Down
bool onKeyUpDown(const SEvent::SKeyInput &input, s32 &mark_begin,
s32 &mark_end, u32 lines_max);
void onKeyControlC(const SEvent &event);
bool onKeyControlX(const SEvent &event, s32 &mark_begin, s32 &mark_end);
bool onKeyControlV(const SEvent &event, s32 &mark_begin, s32 &mark_end);