From 4e4586dc20a0a8befe808d7c89ee2fb3222c63b6 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sun, 25 Apr 2004 13:05:00 +0000 Subject: escape close --- (limited to 'library/qpeapplication.cpp') diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index d0e9613..040b2fe 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -1124,12 +1124,14 @@ bool QPEApplication::qwsEventFilter( QWSEvent * e ) ( int ) active->winId() == ke->simpleData.window && !active->testWFlags( WStyle_Dialog | WStyle_Customize | WType_Popup | WType_Desktop ) ) { if ( active->inherits( "QDialog" ) ) { - qDebug("dialog hack"); HackDialog * d = ( HackDialog * ) active; d->rejectIt(); return TRUE; + } else /*if ( strcmp( argv() [ 0 ], "embeddedkonsole" ) != 0 )*/ { + active->close(); } } + } else if ( ke->simpleData.keycode >= Qt::Key_F1 && ke->simpleData.keycode <= Qt::Key_F29 ) { // this should be if ( ODevice::inst ( )-> buttonForKeycode ( ... )) -- cgit v0.9.0.2