ShaBren / tkintertable

Automatically exported from code.google.com/p/tkintertable
Other
1 stars 1 forks source link

bug in handle_arrow_keys() #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a default TableCanvas
2. press left arrow key until the current cell moves to the first column of any 
rows different from the first row
3. the selection disappear and could not move to the previous role, exception 
of IndexError is throwed

What version of the product are you using? On what operating system?
Latest version on Linux

Suggestions:

Please modify in handle_arrow_keys():

        elif event.keysym == 'Left':
            if self.currentcol == 0:
                if self.currentrow == 0:
                    return
                else:
                    self.currentcol = self.cols-1
                    self.currentrow = self.currentrow - 1
            else:
                self.currentcol  = self.currentcol -1

Original issue reported on code.google.com by deve...@gmail.com on 29 Aug 2013 at 8:25