Update command completions when keyconf changes.

When a user changes keybindings, update the command completion model so
the new keybindings are shown.
This commit is contained in:
Ryan Roden-Corrent 2016-05-18 08:00:21 -04:00
parent c050b4973b
commit 0a0f0feaec

View File

@ -186,3 +186,7 @@ def init():
history = objreg.get('web-history')
history.async_read_done.connect(
functools.partial(update, [usertypes.Completion.url]))
keyconf = objreg.get('key-config')
keyconf.changed.connect(
functools.partial(update, [usertypes.Completion.command]))