From 23d3e04d3eaaebb5066f6ccae3359caa2d2bedc6 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 25 May 2010 07:40:26 +0200 Subject: [PATCH] Fixed: #936 Invalid character when pressing DEL key under Linux --- code/nel/src/3d/driver/opengl/unix_event_emitter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp b/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp index c7a6827d0..2db33f5fd 100644 --- a/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp +++ b/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp @@ -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) {