1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 14:43:31 +00:00

Desktop Autotype fix feature triggering in settings menu (#17808)

This commit is contained in:
neuronull
2025-12-18 12:06:04 -07:00
committed by GitHub
parent ff3582109c
commit bb71390da4

View File

@@ -970,10 +970,20 @@ export class SettingsComponent implements OnInit, OnDestroy {
}
async saveAutotypeShortcut() {
// disable the shortcut so that the user can't re-enter the existing
// shortcut and trigger the feature during the settings menu.
// it is not necessary to check if it's already enabled, because
// the edit shortcut is only avaialble if the feature is enabled
// in the settings.
await this.desktopAutotypeService.setAutotypeEnabledState(false);
const dialogRef = AutotypeShortcutComponent.open(this.dialogService);
const newShortcutArray = await firstValueFrom(dialogRef.closed);
// re-enable
await this.desktopAutotypeService.setAutotypeEnabledState(true);
if (!newShortcutArray) {
return;
}