Commit 88a9e2d3 authored by ibuler's avatar ibuler

[Update] b/q都可以回退

parent f701bbc1
...@@ -407,7 +407,7 @@ class InteractiveServer: ...@@ -407,7 +407,7 @@ class InteractiveServer:
self.client.send(wr(_('Tips: Enter the asset ID and log directly into the asset.'), before=1)) self.client.send(wr(_('Tips: Enter the asset ID and log directly into the asset.'), before=1))
prompt_page_up = _("Page up: P/p") prompt_page_up = _("Page up: P/p")
prompt_page_down = _("Page down: Enter|N/n") prompt_page_down = _("Page down: Enter|N/n")
prompt_back = _("BACK: B/b") prompt_back = _("BACK: b/q")
prompts = [prompt_page_up, prompt_page_down, prompt_back] prompts = [prompt_page_up, prompt_page_down, prompt_back]
prompt = '\t'.join(prompts) prompt = '\t'.join(prompts)
self.client.send(wr(prompt, before=1)) self.client.send(wr(prompt, before=1))
...@@ -416,7 +416,7 @@ class InteractiveServer: ...@@ -416,7 +416,7 @@ class InteractiveServer:
opt = net_input(self.client, prompt=':') opt = net_input(self.client, prompt=':')
if opt in ('p', 'P'): if opt in ('p', 'P'):
return PAGE_UP return PAGE_UP
elif opt in ('B', 'b'): elif opt in ('b', 'q'):
return BACK return BACK
elif opt.isdigit() and self.search_result and 0 < int(opt) <= len(self.search_result): elif opt.isdigit() and self.search_result and 0 < int(opt) <= len(self.search_result):
self.proxy(self.search_result[int(opt)-1]) self.proxy(self.search_result[int(opt)-1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment