fix ctrl+g

This commit is contained in:
Eduardo Bart
2011-12-16 19:13:03 -02:00
parent d78278379b
commit a4eed64709
5 changed files with 25 additions and 13 deletions

View File

@@ -562,6 +562,7 @@ void X11Window::poll()
int len;
m_inputEvent.keyboardModifiers = 0;
m_inputEvent.keyText = "";
if(event.xkey.state & ControlMask)
m_inputEvent.keyboardModifiers |= Fw::KeyboardCtrlModifier;
if(event.xkey.state & ShiftMask)
@@ -590,6 +591,11 @@ void X11Window::poll()
//logDebug("char: ", buf[0], " code: ", (uint)buf[0]);
m_inputEvent.keyText = buf;
}
} else {
len = XLookupString(&event.xkey, buf, sizeof(buf), &keysym, 0);
if(len > 0)
m_inputEvent.keyText = buf;
}
if(m_keyMap.find(keysym) != m_keyMap.end())