Public Member Functions

Koo::koopda::KeyPressEventFilter Class Reference

The KeyPressEventFilter class provides an eventFilter that allows removes KeyPress events and sends them only when KeyRelease is received. More...

List of all members.

Public Member Functions

def __init__
 Creates a new KeyPressEventFilter object.

Detailed Description

The KeyPressEventFilter class provides an eventFilter that allows removes KeyPress events and sends them only when KeyRelease is received.

This can be used as a workaround for a strange bug found when using koopda from a RDP client from a PDA.

To install it in an application use 'app.installEventFilter( Koo.Common.KeyPressEventFilter( mainWindow ) )'

In koopda.py we found that in some circumstances barcodes were not read properly. For example the following code '00121/1' was read as '00112/1'. Investigation showed the problem was not responsibility of Windows CE applications nor xrdp server. For some reason some key press events were being received by koopos.py application in the following way: 0 press, 0 release, 0 press, 0 release, 1 press, 1 release, **1 press**, 2 press, 2 release, 1 release, / press, / release, 1 press, 1 release. As it can be seen **1 press** was received before 2.

The only way found to solve the issue has been to create an event filter called KeyPressEventFilter in koopda.py, which drops key presses and resends them only when release event is received.

Definition at line 93 of file koopda.py.


Member Function Documentation

def Koo::koopda::KeyPressEventFilter::__init__ (   self,
  parent = None 
)

Creates a new KeyPressEventFilter object.

Definition at line 95 of file koopda.py.


The documentation for this class was generated from the following file:
Generated by Doxygen