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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user