F1-F5 leave full-screen views; dialogs still block them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,3 +24,18 @@ func TestToastProgress(t *testing.T) {
|
||||
t.Error("progress detection wrong")
|
||||
}
|
||||
}
|
||||
|
||||
func TestOnlyFullOverlays(t *testing.T) {
|
||||
a := &App{}
|
||||
if !a.onlyFullOverlays() {
|
||||
t.Error("no overlays: view shortcuts must work")
|
||||
}
|
||||
a.overlays = []overlay{{full: true}, {full: true}}
|
||||
if !a.onlyFullOverlays() {
|
||||
t.Error("full-screen views must not block view shortcuts")
|
||||
}
|
||||
a.overlays = append(a.overlays, overlay{})
|
||||
if a.onlyFullOverlays() {
|
||||
t.Error("a dialog must block view shortcuts")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user