add horizontal box layout, enter keypress fix

This commit is contained in:
Eduardo Bart
2012-01-15 11:57:42 -02:00
parent 8bc879d295
commit a238111c07
13 changed files with 269 additions and 27 deletions

View File

@@ -647,7 +647,10 @@ void X11Window::poll()
XKeyEvent xkey = event.xkey;
xkey.state = xkey.state & ~(ShiftMask);
len = XLookupString(&xkey, buf, sizeof(buf), &keysym, 0);
if(len > 0 && m_inputEvent.keyText.length() == 0)
if(len > 0 && m_inputEvent.keyText.length() == 0 && keysym != XK_BackSpace &&
keysym != XK_Return &&
keysym != XK_Delete &&
keysym != XK_Escape)
m_inputEvent.keyText = buf;
if(m_keyMap.find(keysym) != m_keyMap.end())