Logo Search packages:      
Sourcecode: ibus-table version File versions  Download package

def table::tabengine::_english_mode_process_key_event (   self,
  key 
) [private]

English Mode Process Key Event

Definition at line 1188 of file table.py.

01188                                                    :
        '''English Mode Process Key Event'''
        # Ignore key release event
        if key.mask & modifier.RELEASE_MASK:
            return True
        
        if key.code >= 128:
            return False
        # we ignore all hotkeys here    
        if key.mask & modifier.CONTROL_MASK+modifier.ALT_MASK:
            return False
        
        c = unichr (key.code)
        if ascii.ispunct (key.code): # if key code is a punctation
            if self._full_width_punct[self._mode]:
                self.commit_string (self._convert_to_full_width (c))
                return True
            else:
                self.commit_string (c)
                return True
            
        if self._full_width_letter[self._mode]: # if key code is a letter or digit
            self.commit_string (self._convert_to_full_width (c))
            return True
        else:
            self.commit_string (c)
            return True
        
        # should not reach there
        return False
    
    def _table_mode_process_key_event (self, key):


Generated by  Doxygen 1.6.0   Back to index