macOS: Allow using the Passwords app to autofill passwords via the Edit->Autofill menu mimicking other macOS applications

Fixes #8195
This commit is contained in:
Kovid Goyal
2025-01-05 13:36:25 +05:30
parent daa8e6b05d
commit c6ae4b0a53
2 changed files with 8 additions and 5 deletions

View File

@@ -99,6 +99,8 @@ Detailed list of changes
- diff kitten: Abort when run inside a terminal that does not support the kitty keyboard protocol (:iss:`8185`)
- macOS: Allow using the Passwords app to autofill passwords via the Edit->Autofill menu mimicking other macOS applications (:pull:`8195`)
0.38.1 [2024-12-26]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -755,10 +755,7 @@ cocoa_create_global_menu(void) {
MENU_ITEM(appMenu, ([NSString stringWithFormat:@"Quit %@", app_name]), quit);
[appMenu release];
NSMenuItem* shellMenuItem =
[bar addItemWithTitle:@"Shell"
action:NULL
keyEquivalent:@""];
NSMenuItem* shellMenuItem = [bar addItemWithTitle:@"Shell" action:NULL keyEquivalent:@""];
NSMenu* shellMenu = [[NSMenu alloc] initWithTitle:@"Shell"];
[shellMenuItem setSubmenu:shellMenu];
MENU_ITEM(shellMenu, @"New OS Window", new_os_window);
@@ -770,8 +767,12 @@ cocoa_create_global_menu(void) {
MENU_ITEM(shellMenu, @"Close Window", close_window);
[shellMenu addItem:[NSMenuItem separatorItem]];
MENU_ITEM(shellMenu, @"Reset", reset_terminal);
MENU_ITEM(shellMenu, @"Clear to Cursor Line", clear_terminal_and_scrollback);
[shellMenu release];
NSMenuItem* editMenuItem = [bar addItemWithTitle:@"Edit" action:NULL keyEquivalent:@""];
NSMenu* editMenu = [[NSMenu alloc] initWithTitle:@"Edit"];
[editMenuItem setSubmenu:editMenu];
MENU_ITEM(editMenu, @"Clear to Start", clear_terminal_and_scrollback);
[editMenu release];
NSMenuItem* windowMenuItem =
[bar addItemWithTitle:@"Window"