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

def table::editor::arrow_left (   self  ) 

Process Arrow Left Key Event.
Update cursor data when move caret left

Definition at line 351 of file table.py.

00351                          :
        '''Process Arrow Left Key Event.
        Update cursor data when move caret left'''
        if self.get_preedit_strings ():
            if not( self.get_input_chars () or self._u_chars ):
                if self._cursor[1] > 0:
                    self._cursor[1] -= 1
                else:
                    if self._cursor[0] > 0:
                        self._cursor[1] = len (self._strings[self._cursor[0]-1]) - 1
                        self._cursor[0] -= 1
                    else:
                        self._cursor[0] = len(self._strings)
                        self._cursor[1] = 0
                self.update_candidates ()
            return True
        else:
            return False
    
    def arrow_right (self):


Generated by  Doxygen 1.6.0   Back to index