From bb71390da4d0d6cca915d15029ebadd756e7b6e6 Mon Sep 17 00:00:00 2001 From: neuronull <9162534+neuronull@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:06:04 -0700 Subject: [PATCH] Desktop Autotype fix feature triggering in settings menu (#17808) --- apps/desktop/src/app/accounts/settings.component.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/desktop/src/app/accounts/settings.component.ts b/apps/desktop/src/app/accounts/settings.component.ts index e3022428421..3952335af48 100644 --- a/apps/desktop/src/app/accounts/settings.component.ts +++ b/apps/desktop/src/app/accounts/settings.component.ts @@ -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; }