Changed return values for combo box widget
This commit is contained in:
parent
9eca86be2d
commit
2327a7c96d
@ -127,14 +127,14 @@ class comboBox(GuiObject):
|
|||||||
def handleKey(self, k):
|
def handleKey(self, k):
|
||||||
if k == 10 or k == curses.KEY_RIGHT: # Enter key or right for easier use
|
if k == 10 or k == curses.KEY_RIGHT: # Enter key or right for easier use
|
||||||
self.change_value(1)
|
self.change_value(1)
|
||||||
return 0
|
return 1
|
||||||
elif k == curses.KEY_F1:
|
elif k == curses.KEY_F1:
|
||||||
if hasattr(self, "help_string"):
|
if hasattr(self, "help_string"):
|
||||||
self.setStatus(self.help_string)
|
self.setStatus(self.help_string)
|
||||||
return 1
|
return 1
|
||||||
elif k == curses.KEY_LEFT:
|
elif k == curses.KEY_LEFT:
|
||||||
self.change_value(-1)
|
self.change_value(-1)
|
||||||
return 0
|
return 1
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def change_value(self, number):
|
def change_value(self, number):
|
||||||
|
Loading…
Reference in New Issue
Block a user