euporie.core.key_binding.bindings.page_navigation.ConditionalKeyBindings

class euporie.core.key_binding.bindings.page_navigation.ConditionalKeyBindings(key_bindings: KeyBindingsBase, filter: Union[Filter, bool] = True)

Wraps around a KeyBindings. Disable/enable all the key bindings according to the given (additional) filter.:

@Condition
def setting_is_true():
    return True  # or False

registry = ConditionalKeyBindings(key_bindings, setting_is_true)

When new key bindings are added to this object. They are also enable/disabled according to the given filter.

Parameters: