mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 11:56:52 +08:00
KVEditor: make tab behaviour nicer
If we tab while editing, stop editing if we are taken to the next row.
This commit is contained in:
@@ -167,8 +167,10 @@ class KVEditor(common.WWrap):
|
||||
if key in ["esc", "enter"]:
|
||||
self.walker.stop_edit()
|
||||
elif key == "tab":
|
||||
pf = self.walker.focus
|
||||
self.walker.tab_next()
|
||||
self.walker.start_edit()
|
||||
if self.walker.focus == pf:
|
||||
self.walker.start_edit()
|
||||
else:
|
||||
self.w.keypress(size, key)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user