MSK visibility is controlled by AvKon’s CenRep key KaknMiddleSoftkeyEnabled
.
This key does NOT control the MSK feature – it is only meant for enabling
or disabling MSK visibility (in portrait mode; in landscape modes MSK is never
displayed). The following code can be used for checking MSK visiblity in the
platform:
#include <centralrepository.h> #include <avkoninternalcrkeys.h> // KAknMiddleSoftkeyEnabled TInt MSKenabled( 0 ); CRepository* cenRep = NULL; TRAPD( err, cenRep = CRepository::NewL( KCRUidAvkon ) ); if ( !err ) { err = cenRep->Get( KAknMiddleSoftkeyEnabled, MSKenabled ); delete cenRep; }