Refactor (brackets.inBrowser || _isContextMenu(id)) as _isHTMLMenu(id) function.