Repository navigation
Desktop: a setting to use the app's own right-click menus instead of native ones #38063
TonybynMp4
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The desktop app opens every app right-click menu (threads, projects, files, terminal) as a native OS menu. Native menus don't follow T3 Code's appearance settings:
The web app already draws these menus in the page (
contextMenuFallback.ts). On desktop,localApi.contextMenu.showalways goes to the native bridge, so desktop users can't get that menu even if they want it.Proposal
Add a per-device toggle under Settings > Appearance > Interface, something like "Use in-app context menus", off by default on macOS and Windows.
It should be a setting rather than a change for everyone, because the native menu is the better default for many people, especially on macOS, where maintainers prefer it. The problems above hit people with specific setups (Linux, a large interface size, an imported theme), and they should be able to opt out of native menus without changing it for everyone else.
contextMenu.showuses the in-page menu on desktop, the same one the web app uses.context-menuevent, and Cut, Copy, Paste and spelling suggestions should keep working as before.#33088 proposes switching Linux to the in-page menu with no setting. The two fit together: Linux could default to on, and the setting gives macOS and Windows users the same choice.
Prior attempts
#18103 built this toggle and was closed, first for missing screenshots and then as stale. Its review flagged that the in-page menu had worse keyboard support than native menus.
Most of that has landed since. #25877 made the in-page menu keyboard navigable (arrows, submenus, Enter/Space, Tab and Escape returning focus). I opened two PRs for the remaining gaps, and both were closed as stale:
If the direction is wanted, I'd fold #18876's fixes into the PR that adds the setting rather than reopen it on its own.
Open questions
All reactions