Fixing popup
This commit is contained in:
parent
6256501b7d
commit
51add3c737
@ -10,6 +10,7 @@ import os
|
||||
import config
|
||||
from .agent import log
|
||||
from tools.coder import set_current_workspace
|
||||
from . import keycodes
|
||||
|
||||
|
||||
def _build_visual(buffer, max_chars):
|
||||
@ -242,7 +243,7 @@ def model_selector_popup(app, stdscr):
|
||||
pass
|
||||
|
||||
win.refresh()
|
||||
key = win.getch()
|
||||
key = keycodes.read_key(stdscr, -1)
|
||||
|
||||
if key in (27, ord("q"), ord("Q")):
|
||||
break
|
||||
@ -345,7 +346,7 @@ def session_browser_popup(app, stdscr):
|
||||
win.addstr(y, 2, display.ljust(pw - 4), attr)
|
||||
|
||||
win.refresh()
|
||||
key = win.getch()
|
||||
key = keycodes.read_key(stdscr, -1)
|
||||
|
||||
if key in (27, ord("q"), ord("Q")):
|
||||
break
|
||||
@ -444,7 +445,7 @@ def session_search_popup(app, stdscr):
|
||||
win.addstr(y, 2, f" {label}"[:pw - 4].ljust(pw - 4), attr)
|
||||
|
||||
win.refresh()
|
||||
key = win.getch()
|
||||
key = keycodes.read_key(stdscr, -1)
|
||||
|
||||
if key in (27, ord("q"), ord("Q")):
|
||||
break
|
||||
|
||||
Loading…
Reference in New Issue
Block a user