Command to leave a label scope, returning to whichever scope the user opened
it from.
enterLabelScope deliberately leaves that scope on the focus stack, so
exiting has to read it back rather than assume one: pressing l is bound in
braille mode as well as at trace and subplot level, and a fixed return scope
would drop a braille reader into trace scope while their cursor is still in
the braille field.
The guard mirrors AnnounceCommand.restoreScope(), the other way out of a
label scope: only exit when a label scope is genuinely active, since the
focus stack is only known to match the live scope while one is.
Command to leave a label scope, returning to whichever scope the user opened it from.
enterLabelScopedeliberately leaves that scope on the focus stack, so exiting has to read it back rather than assume one: pressinglis bound in braille mode as well as at trace and subplot level, and a fixed return scope would drop a braille reader into trace scope while their cursor is still in the braille field.The guard mirrors
AnnounceCommand.restoreScope(), the other way out of a label scope: only exit when a label scope is genuinely active, since the focus stack is only known to match the live scope while one is.