Skip to content

Commit

Permalink
fix #340: Clarify how to interact inside 'Denotate' window
Browse files Browse the repository at this point in the history
  • Loading branch information
thehunmonkgroup committed Jun 26, 2023
1 parent 00debe7 commit 200bc93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vit/denotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class AnnotationFrame(urwid.Frame):
def __init__(self, body, **kwargs):
self.listbox = body.original_widget
return super().__init__(body, **kwargs)

def keypress(self, size, key):
"""Overrides Frame.keypress method.
"""
Expand Down Expand Up @@ -124,7 +125,7 @@ def denotate(button):
lambda button:self._emit("close"))
frame = AnnotationFrame(
urwid.Padding(self.listbox, left=1, right=1),
header=urwid.Text("Select the annotation, then select 'Denotate'\n"),
header=urwid.Text("Select the annotation, then select 'Denotate'\nTab to move focus between list/buttons\n"),
footer=urwid.Columns([urwid.Padding(denotate_button, left=5, right=6), urwid.Padding(cancel_button, left=6, right=5)]),
)
padded_frame = urwid.Padding(frame, left=1, right=1)
Expand Down

0 comments on commit 200bc93

Please sign in to comment.