logsui/logscntfinder/src/logspredictive12keytranslator.cpp
changeset 15 76d2cf7a585e
parent 4 e52d42f9500c
child 17 90fe74753f71
equal deleted inserted replaced
13:52d644758b05 15:76d2cf7a585e
   102 // -----------------------------------------------------------------------------
   102 // -----------------------------------------------------------------------------
   103 //
   103 //
   104 const QChar LogsPredictive12KeyTranslator::translateChar( 
   104 const QChar LogsPredictive12KeyTranslator::translateChar( 
   105         const QChar character ) const
   105         const QChar character ) const
   106 {
   106 {
   107     const HbMappedKey* mappedKey = 
   107     const HbMappedKey* mappedKey = 0;
   108             mKeyMap->keyForCharacter( HbKeyboardVirtual12Key, character );
   108     if ( mKeyMap ) {
       
   109         mappedKey = mKeyMap->keyForCharacter( HbKeyboardVirtual12Key, character );
       
   110     }
   109     return mappedKey ? mappedKey->keycode : QChar();
   111     return mappedKey ? mappedKey->keycode : QChar();
   110 }
   112 }
   111 
   113 
   112 
   114 
   113 
   115