slack: escaping from search dialog

This commit is contained in:
Kartik K. Agaram 2021-08-13 22:11:31 -07:00
parent 29361ac54e
commit c02d45e8d4
1 changed files with 7 additions and 0 deletions

View File

@ -658,6 +658,13 @@ fn update-environment _env: (addr environment), key: byte, users: (addr array us
{
compare key, 0x1b/esc
break-if-!=
{
var cursor-in-search?/eax: (addr boolean) <- get env, cursor-in-search?
compare *cursor-in-search?, 0/false
break-if-=
copy-to *cursor-in-search?, 0/false
return
}
previous-tab env
return
}