a) chain for chaining Action's of the same view/widget
b) chain' for chaining Action's of different view/widget
Furthermore, we had an action called focus which actually didn't focus
a view/widget, but rather ran setup/teardown code when view and widgets
were changed.
This is confusing.
This patch hopes to improve how Purebred makes focus changes.
a) The chain' combinator becomes 'focus' in order to make clear, that
we're focusing a new widget in a potentially different view.
b) The former focus Action is removed instead.
c) The switchFocus class method has been renamed to onFocusSwitch to
indicate the fact that this is not actually changing the focus to a view
or widget. Rather it runs code during a switch of focus to a different
widget.
d) The explicit view/widget specifier for Actions which can be used on
multiple views/widgets is now made on the right hand side of the focus
combinator.
Purebred had two chain combinators:
a)
chain
for chaining Action's of the same view/widget b)chain'
for chaining Action's of different view/widgetFurthermore, we had an action called
focus
which actually didn't focus a view/widget, but rather ran setup/teardown code when view and widgets were changed.This is confusing.
This patch hopes to improve how Purebred makes focus changes.
a) The
chain'
combinator becomes 'focus' in order to make clear, that we're focusing a new widget in a potentially different view.b) The former
focus
Action is removed instead.c) The
switchFocus
class method has been renamed toonFocusSwitch
to indicate the fact that this is not actually changing the focus to a view or widget. Rather it runs code during a switch of focus to a different widget.d) The explicit view/widget specifier for Actions which can be used on multiple views/widgets is now made on the right hand side of the
focus
combinator.Examples:
A former keybinding like:
becomes:
This former keybinding:
becomes:
#