arrow keys between buttons now work.

This commit is contained in:
John Ladan 2012-04-01 14:47:00 -04:00
parent 747e19ba6d
commit c39c4ef3db
1 changed files with 4 additions and 0 deletions

View File

@ -165,7 +165,9 @@ class formWindow:
if self.bt==-1:
self.mvCursor(-1)
else:
self.unHighlight()
self.bt=0
self.highlight()
elif ch==curses.KEY_HOME:
if self.bt==-1:
self.mvCursor(-len(self.entries[self.hl]))
@ -173,7 +175,9 @@ class formWindow:
if self.bt==-1:
self.mvCursor(+1)
else:
self.unHighlight()
self.bt=1
self.highlight()
elif ch==curses.KEY_END:
if self.bt==-1:
self.mvCursor(+len(self.entries[self.hl]))