Do not close revset query dialog on escape
Created originally on Bitbucket by bels (Stephen Belknap)
When typing in the revset dialog, it sometimes pops up a menu to select a function. Control then passes to that pop-up and you cannot use the left/right arrows to navigate the query itself.
I tried hitting Esc to exit out of the pop-up function selector but it closed the entire window. Esc should close the window if the pop-up is not present. But if it is, then Esc should just close that pop-up and return control to the revset query text area.