Startup cover never outlasts a page that does not say it painted; menu clicks ask nothing native; mode cards show their picture
Release blocker (macOS 1.0.0: both panes stayed on the shell's loading shape). After `shell_ready` the startup cover waited, with no limit, for every visible site tab to report that it painted. A page whose report never comes (its paint check is frame-driven and gives up after 10 s, and an engine may hold a hidden window's frames back) kept the shell raised over the panes, showing the skeleton, for good. The wait is now bounded (8 s after the window is shown); the page then shows as it is.
The app menu asked for the keyboard natively (`shell_focus`) on every open. It now does so only when the shell does not have it (keys pressed in a tab); a click on the shell already gave it the keyboard.
The mode cards' default picture was shrunk to 16px by the shell's base glyph rule ("a few dots"); it keeps its size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2e3babd2f5
commit
06e830b132
3 changed files with 12 additions and 2 deletions
|
|
@ -115,8 +115,9 @@ export function AppMenu() {
|
|||
}
|
||||
const active = document.activeElement as HTMLElement | null;
|
||||
before.current = active && active !== document.body && document.hasFocus() ? active : null;
|
||||
// Keys pressed in a tab open the menu: the shell takes the keyboard.
|
||||
invoke('shell_focus').catch(() => {});
|
||||
// Keys pressed in a tab open the menu: the shell takes the keyboard. A click on the shell already
|
||||
// gave it the keyboard, so nothing native is asked for then.
|
||||
if (!document.hasFocus()) invoke('shell_focus').catch(() => {});
|
||||
setAsking(null); setError('');
|
||||
setPath(request.submenu ? [request.submenu] : []);
|
||||
focusNext.current = request.submenu ? { level: 1, edge: 'first' } : { level: 0, edge: request.keyboard ? 'first' : 'menu' };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue