Here is an introduction to handling keyboard events using the Icon keypad. Responding to Icon keypad events is very easy. You just need to set up the function to handle a particular key event. For Example:
class TestWidget(widget.Widget):
def __init__(self,id=None,title=None, brailleTitle=None):
widget.Widget.__init__(self,id=id,title=title,brailleTitle=brailleTitle)
self.setKeySetHandler('select',self.handleselect)
def handleselect(self):
self.app.say("Select Key Handled")
setKeySetHandler takes two arguments. The first is a label for the key being pressed. The second in the name of the function to be called when the key is pressed.
