equal
deleted
inserted
replaced
234 // |
234 // |
235 TKeyResponse CMPXFileNameQueryDlg::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ) |
235 TKeyResponse CMPXFileNameQueryDlg::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ) |
236 { |
236 { |
237 TKeyResponse response = EKeyWasNotConsumed; |
237 TKeyResponse response = EKeyWasNotConsumed; |
238 // consume 'enter' so it won't acknowledge the dialog |
238 // consume 'enter' so it won't acknowledge the dialog |
239 if ( aType == EEventKey && aKeyEvent.iCode == EKeyEnter ) |
239 |
|
240 TBool vkbOpen = EFalse; |
|
241 CAknQueryControl* queryControl = QueryControl(); |
|
242 if ( queryControl ) |
|
243 { |
|
244 CEikEdwin* edwin = static_cast< CEikEdwin* >( |
|
245 queryControl->ControlByLayoutOrNull( EDataLayout ) ); |
|
246 if ( edwin ) |
|
247 { |
|
248 if ( edwin->AknEdwinFlags() & EAknEditorFlagTouchInputModeOpened ) |
|
249 { |
|
250 // virtual keyboard is active. |
|
251 vkbOpen = ETrue; |
|
252 } |
|
253 } |
|
254 } |
|
255 |
|
256 if ( vkbOpen && aType == EEventKey && aKeyEvent.iCode == EKeyEnter ) |
240 { |
257 { |
241 response = EKeyWasConsumed; |
258 response = EKeyWasConsumed; |
242 } |
259 } |
243 else |
260 else |
244 { |
261 { |