From 688bd5382ab60c2146050fc2ff36850ef08a79b9 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 25 Sep 2004 04:51:30 +0000 Subject: move kerypress to keyrelease --- diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 73d0d57..48332b7 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -374,6 +374,13 @@ void AdvancedFm::doAbout() { } void AdvancedFm::keyPressEvent( QKeyEvent *e) { + qDebug("keypressevent"); +} + +void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { + qDebug("key release"); + if( CurrentView()->hasFocus() ) + e->ignore(); if( e->key() == Key_Left ) upDir(); else if( e->key() == Key_Return || e->key() == Key_Enter) @@ -420,11 +427,6 @@ void AdvancedFm::keyPressEvent( QKeyEvent *e) { e->accept(); } -void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { - if( CurrentView()->hasFocus() ) - e->ignore(); -} - void AdvancedFm::QPEButtonPushed() { QString current = QPEApplication::qpeDir(); -- cgit v0.9.0.2