equal
deleted
inserted
replaced
990 if (!iAppKey) |
990 if (!iAppKey) |
991 { |
991 { |
992 RWindowGroup& groupWin=iCoeEnv->RootWin(); |
992 RWindowGroup& groupWin=iCoeEnv->RootWin(); |
993 iAppKey = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication0, 0, 0); // Capture app key |
993 iAppKey = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication0, 0, 0); // Capture app key |
994 } |
994 } |
|
995 // Any orientation change is a waste of battery and triggers unnecesary window events and paining. |
|
996 // Not only that: in landscape the BigRedButton is too small. |
|
997 // Therefore we always stay in portrait. The icon looks much nicer. |
|
998 SetOrientationL( EAppUiOrientationPortrait ); |
995 LockSideKeyL(); |
999 LockSideKeyL(); |
996 } |
1000 } |
997 // ---------------------------------------------------- |
1001 // ---------------------------------------------------- |
998 // CAutolockAppUi::UnLockKeys() |
1002 // CAutolockAppUi::UnLockKeys() |
999 // unlocks keys |
1003 // unlocks keys |