mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
KVEditor: make tab key do the expected thing at the end of the value set.
This commit is contained in:
parent
a1ecd25e8b
commit
d3dce8f943
@ -217,9 +217,9 @@ class KVEditor(common.WWrap):
|
|||||||
if key in ["esc", "enter"]:
|
if key in ["esc", "enter"]:
|
||||||
self.walker.stop_edit()
|
self.walker.stop_edit()
|
||||||
elif key == "tab":
|
elif key == "tab":
|
||||||
pf = self.walker.focus
|
pf, pfc = self.walker.focus, self.walker.focus_col
|
||||||
self.walker.tab_next()
|
self.walker.tab_next()
|
||||||
if self.walker.focus == pf:
|
if self.walker.focus == pf and self.walker.focus_col != pfc:
|
||||||
self.walker.start_edit()
|
self.walker.start_edit()
|
||||||
else:
|
else:
|
||||||
self.w.keypress(size, key)
|
self.w.keypress(size, key)
|
||||||
|
Loading…
Reference in New Issue
Block a user