Commit 85693f2
committed
fix(desktop): bind Cmd+W to close the window
The application menu had no File menu, so the close-window role (which
carries the Cmd+W / Ctrl+W accelerator) was never registered. The Window
menu role only provides Minimize, Zoom, and Bring All to Front, so there
was no keyboard shortcut to close the window. Add a File menu with the
close role to restore the standard accelerator on every platform.1 parent eb9ed89 commit 85693f2
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
849 | 857 | | |
850 | 858 | | |
851 | 859 | | |
| 860 | + | |
852 | 861 | | |
853 | 862 | | |
854 | 863 | | |
| |||
0 commit comments