mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Fixed: #1137 SHIFT+RETURN doesn't work under linux (patch provided by Naush)
This commit is contained in:
parent
cfcb8367a1
commit
92e942688e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue