Merge pull request #3992 from johnjmullen/fix-barcode-scanner

Fix issue #3229 Barcode Scanner USB - missing double characters
This commit is contained in:
akallabeth 2017-07-07 08:53:21 +02:00 committed by GitHub
commit 2f231a8e17
1 changed files with 0 additions and 12 deletions

View File

@ -492,18 +492,6 @@ static BOOL xf_event_KeyRelease(xfContext* xfc, XEvent* event, BOOL app)
KeySym keysym;
char str[256];
if (XPending(xfc->display))
{
ZeroMemory(&nextEvent, sizeof(nextEvent));
XPeekEvent(xfc->display, &nextEvent);
if (nextEvent.type == KeyPress)
{
if (nextEvent.xkey.keycode == event->xkey.keycode)
return TRUE;
}
}
XLookupString((XKeyEvent*) event, str, sizeof(str), &keysym, NULL);
xf_keyboard_key_release(xfc, event->xkey.keycode, keysym);
return TRUE;