The browse mode action with default shortcut {key Esc} is not added to action collection (removed in D5824) and therefore not visible/changeable in {nav Settings -> Configure Shortcuts}.
Using {key Esc} as shortcut for e.g. Quit does not work.
This patch re-adds the browse mode action to action collection, but also checks for `ShortcutOverride` events to handle active tool dialogs.
BUG: 385242