Fixed: #1137 SHIFT+RETURN doesn't work under linux (patch provided by Naush)

This commit is contained in:
kervala 2010-10-24 18:54:43 +02:00
parent cfcb8367a1
commit 92e942688e

View file

@ -568,7 +568,7 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
ucstring ucstr; ucstring ucstr;
ucstr.fromUtf8(Text); ucstr.fromUtf8(Text);
CEventChar *charEvent = new CEventChar (ucstr[0], noKeyButton, this); CEventChar *charEvent = new CEventChar (ucstr[0], getKeyButton(event.xbutton.state), this);
// raw if not processed by IME // raw if not processed by IME
charEvent->setRaw(keyCode != 0); charEvent->setRaw(keyCode != 0);
@ -577,7 +577,7 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
#else #else
for (int i = 0; i < c; i++) for (int i = 0; i < c; i++)
{ {
CEventChar *charEvent = new CEventChar ((ucchar)(unsigned char)Text[i], noKeyButton, this); CEventChar *charEvent = new CEventChar ((ucchar)(unsigned char)Text[i], getKeyButton(event.xbutton.state), this);
// raw if not processed by IME // raw if not processed by IME
charEvent->setRaw(keyCode != 0); charEvent->setRaw(keyCode != 0);