70 &boolean ); |
70 &boolean ); |
71 |
71 |
72 // CAPTURE KEY EVENTS PERMANENTLY |
72 // CAPTURE KEY EVENTS PERMANENTLY |
73 |
73 |
74 // Capture the up and down events for the No key |
74 // Capture the up and down events for the No key |
75 TPhoneCmdParamKeyCapture noKeyCaptureParam; |
75 /*TPhoneCmdParamKeyCapture noKeyCaptureParam; |
76 noKeyCaptureParam.SetKey( EStdKeyNo ); |
76 noKeyCaptureParam.SetKey( EStdKeyNo ); |
77 noKeyCaptureParam.SetKeyCode( EKeyNo ); |
77 noKeyCaptureParam.SetKeyCode( EKeyNo ); |
78 noKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents ); |
78 noKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents ); |
79 iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, |
79 iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, |
80 &noKeyCaptureParam ); |
80 &noKeyCaptureParam );*/ |
81 |
81 |
82 // Capture the up and down events for the EStdKeyEnd key |
82 // Capture the up and down events for the EStdKeyEnd key |
83 TPhoneCmdParamKeyCapture endKeyCaptureParam; |
83 /*TPhoneCmdParamKeyCapture endKeyCaptureParam; |
84 endKeyCaptureParam.SetKey( EStdKeyEnd ); |
84 endKeyCaptureParam.SetKey( EStdKeyEnd ); |
85 endKeyCaptureParam.SetKeyCode( EKeyEnd ); |
85 endKeyCaptureParam.SetKeyCode( EKeyEnd ); |
86 endKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents ); |
86 endKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents ); |
87 iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, |
87 iViewCommandHandle->ExecuteCommandL( EPhoneViewStartCapturingKey, |
88 &endKeyCaptureParam ); |
88 &endKeyCaptureParam );*/ |
89 } |
89 } |
90 |
90 |
91 // ----------------------------------------------------------- |
91 // ----------------------------------------------------------- |
92 // CPhoneStateStartup::NewL() |
92 // CPhoneStateStartup::NewL() |
93 // Constructor |
93 // Constructor |
180 // If a key event is received in this state, either the phone engine |
180 // If a key event is received in this state, either the phone engine |
181 // is not ready or the phone has not started up yet. Display an error note |
181 // is not ready or the phone has not started up yet. Display an error note |
182 // if the phone engine is not ready. |
182 // if the phone engine is not ready. |
183 if ( iPhoneReady && !iPEReady ) |
183 if ( iPhoneReady && !iPEReady ) |
184 { |
184 { |
185 SendGlobalErrorNoteL( EPhoneNoteTextPEFailedAtStartup ); |
185 SendGlobalErrorNoteL( EPhoneNoteTextPEFailedAtStartup, ETrue ); |
186 } |
186 } |
187 } |
187 } |
188 |
188 |
189 // ----------------------------------------------------------- |
189 // ----------------------------------------------------------- |
190 // CPhoneStateStartup::HandleKeyEventL |
190 // CPhoneStateStartup::HandleKeyEventL |