@ -327,6 +327,7 @@ class WrappingControl(AbstractControl):
self.child.load_state(state)
def respond_to(self, command):
logging.debug('%s.respond_to: Passing command "%s" to child', self.__class__.__name__, command)
return self.child.respond_to_ex(command)
@property
@ -120,6 +120,8 @@ class CycleControl(WrappingControl):
elif command == ':prev':
self.child.prev()
return True
else:
return super().respond_to(command)
def __str__(self):
next_button = Button.LEFT
@ -41,6 +41,13 @@ class ScreenLayoutCycleAction(OrderedDictCycleAction):
return False
def respond_to(self, command: str):
if command == 'screenlayout':
self.next()
return self.__naming_func(super().__str__())