Diffstat (limited to 'development/keyview/keyview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | development/keyview/keyview.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/development/keyview/keyview.cpp b/development/keyview/keyview.cpp index 8187744..cf082a8 100644 --- a/development/keyview/keyview.cpp +++ b/development/keyview/keyview.cpp @@ -65,11 +65,16 @@ KeyFilter::KeyFilter(QObject * parent, const char *name) : QObject( parent, name { } +KeyFilter::~KeyFilter() { + /* we need to remove the KeyFilter */ + Opie::Core::OKeyFilter::inst()->remHandler( this ); +} + bool KeyFilter::filter(int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat) { qDebug( "unicode: %d, keycode: %d, modifiers: %0x, isPress: %d, autoRepeat: %d", - unicode, keycode, modifiers, isPress ); + unicode, keycode, modifiers, isPress, autoRepeat ); emit keyPressed(unicode, keycode, modifiers, isPress, autoRepeat); return 0; // return 1 to stop key emiting |