sell_in_mace.patch

Naush, 10/22/2010 09:57 pm

Download (939 Bytes)

b/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp Fri Oct 22 21:42:03 2010 +0200
568 568
			ucstring ucstr;
569 569
			ucstr.fromUtf8(Text);
570 570

571
			CEventChar *charEvent = new CEventChar (ucstr[0], noKeyButton, this);
571
			CEventChar *charEvent = new CEventChar (ucstr[0], getKeyButton(event.xbutton.state), this);
572 572

573 573
			// raw if not processed by IME
574 574
			charEvent->setRaw(keyCode != 0);
......
577 577
#else
578 578
			for (int i = 0; i < c; i++)
579 579
			{
580
				CEventChar *charEvent = new CEventChar ((ucchar)(unsigned char)Text[i], noKeyButton, this);
580
				CEventChar *charEvent = new CEventChar ((ucchar)(unsigned char)Text[i], getKeyButton(event.xbutton.state), this);
581 581

582 582
				// raw if not processed by IME
583 583
				charEvent->setRaw(keyCode != 0);