INNER CODE UNIT · Python
AttentionScreen
VisionForge-OU/foreman · src/foreman/tui/app.py:260
class AttentionScreen(Screen):
BINDINGS = [
Binding("escape", "app.pop_screen", "Back"),
# Submit is Ctrl+S, NOT Enter: Enter must stay free for newlines in the answer
# box (and selection in the list). priority=True so it fires even while the
# TextArea has focus, so you can answer and submit without leaving the box.
Binding("ctrl+s", "resume", "Answer & resume", priority=True),
Binding("ctrl+n", "next", "Next escalation"),
]
CSS = """
#elist { height: 10; border: round $warning; }
#answer { height: 8; border: round $accent; }
"""
def __init__(self, slug: str):
super().__init__()
self.slug = slug
self.selected: Optional[str] = None