Commit 3343303
authored
fix(desktop): bind Cmd+W to close the window (#1174)
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 d5ba68f commit 3343303
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
856 | 864 | | |
857 | 865 | | |
858 | 866 | | |
| 867 | + | |
859 | 868 | | |
860 | 869 | | |
861 | 870 | | |
| |||
0 commit comments