This page was last modified 06:29, 25 September 2007.
Capturing the End (red) key during a call
From Forum Nokia Wiki
Platform(s):
S60 3rd Edition
S60 3rd Edition, FP1
An application can capture the the End key even during an active call using the following kind of code.
Please note that SwEvent capability is needed to make successful calls to the mentioned Window Server functions.
#include <W32STD.H> // link against ws32.lib #include <e32keys.h> ... RWindowGroup& groupWin = CCoeEnv::Static()->RootWin(); TInt endKey1 = groupWin.CaptureKeyUpAndDowns( EStdKeyNo, 0, 0 ); TInt endKey2 = groupWin.CaptureKey( EKeyNo, 0, 0 ); // -> End key can now be processed before the phone application of the device... ... // Cancel the capture groupWin.CancelCaptureKeyUpAndDowns( endKey1 ); groupWin.CancelCaptureKey( endKey2 );
This solution has been tested using Nokia N73 (SW: 2.0620.0.05).
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capturing Audio with 6280 | giladgaron | Mobile Java Tools & SDKs | 1 | 2006-08-17 20:21 |
| doubt abt incoming call mute. | gmurugaraj | General Browsing | 6 | 2007-05-28 12:20 |
| Key event for "End key" | rkuppala | General Symbian C++ | 1 | 2003-04-07 10:37 |
| Capturing Music Slider Event ( Nokia 5610 Express Music ) | mekadur | Mobile Java General | 2 | 2008-01-24 06:57 |
| Hang up key closes my application | er_benji | General Symbian C++ | 2 | 2007-12-28 10:18 |
