equal
deleted
inserted
replaced
33 #include <barsread.h> // for resource reader |
33 #include <barsread.h> // for resource reader |
34 #include <centralrepository.h> |
34 #include <centralrepository.h> |
35 #include <coeutils.h> |
35 #include <coeutils.h> |
36 #include <eikserverapp.h> |
36 #include <eikserverapp.h> |
37 |
37 |
38 |
|
39 #include <starterclient.h> |
38 #include <starterclient.h> |
40 |
39 |
41 // character conversions |
40 // character conversions |
42 #include <utf.h> |
41 #include <utf.h> |
43 |
42 |
218 TKeyResponse CDRMRightsMgrAppUi::HandleKeyEventL( const TKeyEvent& aKeyEvent, |
217 TKeyResponse CDRMRightsMgrAppUi::HandleKeyEventL( const TKeyEvent& aKeyEvent, |
219 TEventCode /*aType*/ ) |
218 TEventCode /*aType*/ ) |
220 { |
219 { |
221 TChar charCode( aKeyEvent.iCode ); |
220 TChar charCode( aKeyEvent.iCode ); |
222 |
221 |
223 if ( charCode == EKeyEnter ) |
222 if ( aKeyEvent.iScanCode == EStdKeyEnter ) |
224 // Default is to show details |
223 // Default is to show details |
225 { |
224 { |
226 TInt command = EDRMRightsManagerCmdAppViewDet; |
225 TInt command = EAknSoftkeyClose; |
227 HandleCommandL( command ); |
226 HandleCommandL( command ); |
228 return EKeyWasConsumed; |
227 return EKeyWasConsumed; |
229 } |
228 } |
230 else if ( charCode == EKeyLeftArrow || charCode == EKeyRightArrow |
229 else if ( charCode == EKeyLeftArrow || charCode == EKeyRightArrow |
231 || charCode == EKeyBackspace ) |
230 || charCode == EKeyBackspace ) |
253 Exit(); |
252 Exit(); |
254 break; |
253 break; |
255 } |
254 } |
256 case EAknSoftkeyClose: |
255 case EAknSoftkeyClose: |
257 { |
256 { |
258 |
|
259 if (server) |
257 if (server) |
260 { |
258 { |
261 server->NotifyServerExit(EAknSoftkeyClose); |
259 server->NotifyServerExit(EAknSoftkeyClose); |
262 } |
260 } |
263 |
|
264 Exit(); |
261 Exit(); |
265 break; |
262 break; |
266 } |
263 } |
267 default: |
264 default: |
268 break; |
265 break; |