mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
fix(desktop): stop right-click showing a lone Select All on bare surfaces
This commit is contained in:
parent
937222f4ec
commit
dba7bef5ce
1 changed files with 5 additions and 1 deletions
|
|
@ -5642,8 +5642,12 @@ function installContextMenu(window) {
|
|||
}
|
||||
}
|
||||
|
||||
// Bare right-click on non-editable, non-selected, non-media content (a pane
|
||||
// body, the sidebar, chrome): the renderer's own context menus own those
|
||||
// surfaces, and anywhere without one shows nothing — not a lone, useless
|
||||
// "Select All" from the native fallback.
|
||||
if (!template.length) {
|
||||
template.push({ role: 'selectAll' })
|
||||
return
|
||||
}
|
||||
|
||||
Menu.buildFromTemplate(template).popup({ window })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue