So, the problem is in the title. If I type anything, the input is correctly shown in the editbox, however if I press the Backspace/Delete keys, nothing happens.
I use this to forward the input to cegui from the WM_CHAR win32 messages:
CEGUI::System::getSingleton().getDefaultGUIContext().injectChar(key);
Am I supposed to handle backspace key presses in a special way...or?
[SOLVED]EditBox does not respond to Delete/Backspace keys
Moderators: CEGUI MVP, CEGUI Team
[SOLVED]EditBox does not respond to Delete/Backspace keys
Last edited by noatom on Tue Oct 07, 2014 14:47, edited 1 time in total.
Re: EditBox does not respond to Delete/Backspace keys
You need to injectKeyDown/Up as well as injectChar. It could be that you are only calling injectChar which is not enough.
Please read http://static.cegui.org.uk/docs/0.8.4/i ... orial.html
Please read http://static.cegui.org.uk/docs/0.8.4/i ... orial.html
Re: EditBox does not respond to Delete/Backspace keys
Solved: Apparently you can't delete text only by injecting chars, you need to use the up/down injection methods.
Who is online
Users browsing this forum: No registered users and 20 guests