mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
Fixed: #936 Invalid character when pressing DEL key under Linux
This commit is contained in:
parent
dbbb773b7b
commit
2823a1f16b
1 changed files with 4 additions and 0 deletions
|
@ -312,6 +312,10 @@ void CUnixEventEmitter::processMessage (XEvent &event, CEventServer &server)
|
|||
// TODO manage the bool (first time pressed)
|
||||
server.postEvent (new CEventKeyDown (key, getKeyButton(event.xbutton.state), true, this));
|
||||
|
||||
// don't send a control character when deleting
|
||||
if (key == KeyDELETE)
|
||||
c = 0;
|
||||
|
||||
Text[c] = '\0';
|
||||
if(c>0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue