def METHOD_NAME(self, edit, ev):
    """Return True or False, handling the event if applicable.
    This method is called by eventFilter() for KeyPress events.
    edit: Q(Plain)TextEdit instance
    ev: the KeyPress QEvent
    """
    result = None
    if self.handle_home:
        result = self.handleHome(edit, ev)
    if result is None and self.handle_horizontal:
        result = self.handleHorizontal(edit, ev)
    if result is None and self.handle_vertical:
        result = self.handleVertical(edit, ev)
    return bool(result) # None becomes False