author | llornkcor <llornkcor> | 2004-09-25 04:51:30 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 04:51:30 (UTC) |
commit | 688bd5382ab60c2146050fc2ff36850ef08a79b9 (patch) (unidiff) | |
tree | f75ea4fa42dadffcae08cc9d2e73ceca710c6feb | |
parent | 4eab17fb1381c938188e13ec5025b8302b159c9e (diff) | |
download | opie-688bd5382ab60c2146050fc2ff36850ef08a79b9.zip opie-688bd5382ab60c2146050fc2ff36850ef08a79b9.tar.gz opie-688bd5382ab60c2146050fc2ff36850ef08a79b9.tar.bz2 |
move kerypress to keyrelease
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
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 | |||
@@ -371,12 +371,19 @@ void AdvancedFm::CFButtonPushed() { | |||
371 | 371 | ||
372 | void AdvancedFm::doAbout() { | 372 | void AdvancedFm::doAbout() { |
373 | QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>")); | 373 | QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>")); |
374 | } | 374 | } |
375 | 375 | ||
376 | void AdvancedFm::keyPressEvent( QKeyEvent *e) { | 376 | void AdvancedFm::keyPressEvent( QKeyEvent *e) { |
377 | qDebug("keypressevent"); | ||
378 | } | ||
379 | |||
380 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { | ||
381 | qDebug("key release"); | ||
382 | if( CurrentView()->hasFocus() ) | ||
383 | e->ignore(); | ||
377 | if( e->key() == Key_Left ) | 384 | if( e->key() == Key_Left ) |
378 | upDir(); | 385 | upDir(); |
379 | else if( e->key() == Key_Return || e->key() == Key_Enter) | 386 | else if( e->key() == Key_Return || e->key() == Key_Enter) |
380 | navigateToSelected(); | 387 | navigateToSelected(); |
381 | else if( e->key() == Key_Tab) | 388 | else if( e->key() == Key_Tab) |
382 | setOtherTabCurrent(); | 389 | setOtherTabCurrent(); |
@@ -417,17 +424,12 @@ void AdvancedFm::keyPressEvent( QKeyEvent *e) { | |||
417 | else if( e->key() == Key_6 ) | 424 | else if( e->key() == Key_6 ) |
418 | docButtonPushed(); | 425 | docButtonPushed(); |
419 | else | 426 | else |
420 | e->accept(); | 427 | e->accept(); |
421 | } | 428 | } |
422 | 429 | ||
423 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { | ||
424 | if( CurrentView()->hasFocus() ) | ||
425 | e->ignore(); | ||
426 | } | ||
427 | |||
428 | 430 | ||
429 | void AdvancedFm::QPEButtonPushed() { | 431 | void AdvancedFm::QPEButtonPushed() { |
430 | QString current = QPEApplication::qpeDir(); | 432 | QString current = QPEApplication::qpeDir(); |
431 | chdir( current.latin1() ); | 433 | chdir( current.latin1() ); |
432 | CurrentDir()->cd( current, TRUE); | 434 | CurrentDir()->cd( current, TRUE); |
433 | populateView(); | 435 | populateView(); |