Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/pages/advanced_topics/key_bindings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ to a certain condition. This is possible by wrapping it in a
" Only activate key binding on the second half of each minute. "
return datetime.datetime.now().second > 30

bindings = ConditionalKeyBindings(
key_bindings=my_bindings,
filter=is_active)
bindings = ConditionalKeyBindings(
key_bindings=my_bindings,
filter=is_active)

If the condition is not satisfied, all the key bindings in `my_bindings` above
will be ignored.
Expand Down
Loading