mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Fix crashes on mouse click when input is being handled
This commit is contained in:
parent
97c6d7ed25
commit
d7e53e6573
@ -617,8 +617,6 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
self.prompt_execute(k)
|
self.prompt_execute(k)
|
||||||
elif k == "enter":
|
elif k == "enter":
|
||||||
self.prompt_execute()
|
self.prompt_execute()
|
||||||
else:
|
|
||||||
self.view.keypress(self.loop.screen_size, k)
|
|
||||||
else:
|
else:
|
||||||
k = self.view.keypress(self.loop.screen_size, k)
|
k = self.view.keypress(self.loop.screen_size, k)
|
||||||
if k:
|
if k:
|
||||||
@ -943,7 +941,7 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
mkup.append(",")
|
mkup.append(",")
|
||||||
prompt.extend(mkup)
|
prompt.extend(mkup)
|
||||||
prompt.append(")? ")
|
prompt.append(")? ")
|
||||||
self.onekey = "".join(i[1] for i in keys)
|
self.onekey = set(i[1] for i in keys)
|
||||||
self.prompt(prompt, "", callback, *args)
|
self.prompt(prompt, "", callback, *args)
|
||||||
|
|
||||||
def prompt_done(self):
|
def prompt_done(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user