From 16739dabe3711f152966af702c59df83a95d5d51 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 9 Oct 2019 23:11:10 +0200 Subject: Use usertypes.KeyMode for PassthroughKeyParser mode argument More consistency with RegisterKeyParser and more type safety --- qutebrowser/keyinput/modeman.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qutebrowser/keyinput/modeman.py') diff --git a/qutebrowser/keyinput/modeman.py b/qutebrowser/keyinput/modeman.py index eb9ae537a..48ae3d9c5 100644 --- a/qutebrowser/keyinput/modeman.py +++ b/qutebrowser/keyinput/modeman.py @@ -87,22 +87,22 @@ def init(win_id, parent): parent=modeman), usertypes.KeyMode.insert: modeparsers.PassthroughKeyParser(win_id=win_id, - mode='insert', + mode=usertypes.KeyMode.insert, commandrunner=commandrunner, parent=modeman), usertypes.KeyMode.passthrough: modeparsers.PassthroughKeyParser(win_id=win_id, - mode='passthrough', + mode=usertypes.KeyMode.passthrough, commandrunner=commandrunner, parent=modeman), usertypes.KeyMode.command: modeparsers.PassthroughKeyParser(win_id=win_id, - mode='command', + mode=usertypes.KeyMode.command, commandrunner=commandrunner, parent=modeman), usertypes.KeyMode.prompt: modeparsers.PassthroughKeyParser(win_id=win_id, - mode='prompt', + mode=usertypes.KeyMode.prompt, commandrunner=commandrunner, parent=modeman), usertypes.KeyMode.yesno: -- cgit v1.2.3-54-g00ecf