TAB and ESC in CGUIEditBox

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
loonychewy
Posts: 22
Joined: Fri Dec 30, 2005 2:00 am
Location: Singapore
Contact:

TAB and ESC in CGUIEditBox

Post by loonychewy »

When TAB and ESC are pressed while typing in the edit box, a square box is added for these non-printable characters. This can be easily observed using the UserInterface example in the SDK. I have not found any other non-printable characters which are similar displayed.

The simple and obvious fix is to trap KEY_TAB and KEY_ESCAPE in CGUIEditBox::processKey(), but there might be other things I've overlooked, or we could use TAB key to change the focus of the UI elements like in standard windowing systems.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

hmm yes, tab and shift-tab should switch between tabbable controls, ctrl+tab between windows, return should press a default button, escape for a cancel or minimize button, there should be keyboard and scrollwheel navigation, and a way to group controls within a parent. i'll look at adding all these after the next release
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

In the short term, I've got a patch languishing in the tracker that at least adds support for TAB.
Post Reply