From d3dce8f9433c7e3c78821d4378911861f0a785bb Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 9 Feb 2012 11:36:10 +1300 Subject: [PATCH] KVEditor: make tab key do the expected thing at the end of the value set. --- libmproxy/console/kveditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmproxy/console/kveditor.py b/libmproxy/console/kveditor.py index f065cf304..7b1aeb6ac 100644 --- a/libmproxy/console/kveditor.py +++ b/libmproxy/console/kveditor.py @@ -217,9 +217,9 @@ class KVEditor(common.WWrap): if key in ["esc", "enter"]: self.walker.stop_edit() elif key == "tab": - pf = self.walker.focus + pf, pfc = self.walker.focus, self.walker.focus_col self.walker.tab_next() - if self.walker.focus == pf: + if self.walker.focus == pf and self.walker.focus_col != pfc: self.walker.start_edit() else: self.w.keypress(size, key)