From dbbb19015b86b7863d26deb03fabd4522bb9fa56 Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 8 Dec 2014 20:31:28 +0100 Subject: [PATCH] Added autotype lookup settings --- MacPass/MPSettingsHelper.h | 3 +++ MacPass/MPSettingsHelper.m | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/MacPass/MPSettingsHelper.h b/MacPass/MPSettingsHelper.h index a4a9d74c..2a9b010b 100644 --- a/MacPass/MPSettingsHelper.h +++ b/MacPass/MPSettingsHelper.h @@ -50,6 +50,9 @@ APPKIT_EXTERN NSString *const kMPSettingsKeySendCommandForControlKey; // APPKIT_EXTERN NSString *const kMPSettingsKeyEnableGlobalAutotype; // Is Global Autotype enabled? APPKIT_EXTERN NSString *const kMPSettingsKeyGlobalAutotypeKeyDataKey; // The stored Data for the useder defined global autotype key APPKIT_EXTERN NSString *const kMPSettingsKeyDefaultGlobalAutotypeSequence; // Default sequence used for Autotype +APPKIT_EXTERN NSString *const kMPSettingsKeyAutotypeMatchURL; // Autotype lookup included entry URL +APPKIT_EXTERN NSString *const kMPSettingsKeyAutotypeMatchHost; // Autotype lookup included host part of entry URL +APPKIT_EXTERN NSString *const kMPSettingsKeyAutotypeMatchTags; // Autotype lookup included tags for entries /* Search */ APPKIT_EXTERN NSString *const kMPSettingsKeyEntrySearchFilterContext; diff --git a/MacPass/MPSettingsHelper.m b/MacPass/MPSettingsHelper.m index 7946804e..e141b7ea 100644 --- a/MacPass/MPSettingsHelper.m +++ b/MacPass/MPSettingsHelper.m @@ -38,6 +38,9 @@ NSString *const kMPSettingsKeySendCommandForControlKey = @"SendCo NSString *const kMPSettingsKeyEnableGlobalAutotype = @"EnableGlobalAutotype"; NSString *const kMPSettingsKeyGlobalAutotypeKeyDataKey = @"GlobalAutotypeKeyDataKey"; NSString *const kMPSettingsKeyDefaultGlobalAutotypeSequence = @"DefaultGlobalAutotypeSequence"; +NSString *const kMPSettingsKeyAutotypeMatchURL = @"AutotypeMatchURL"; +NSString *const kMPSettingsKeyAutotypeMatchHost = @"AutotypeMatchHost"; +NSString *const kMPSettingsKeyAutotypeMatchTags = @"AutotypeMatchTags"; NSString *const kMPSettingsKeyEntrySearchFilterContext = @"EntrySearchFilterContext"; @@ -105,6 +108,9 @@ NSString *const kMPDeprecatedSettingsKeyEntrySearchFilterMode = @"En kMPSettingsKeyEnableGlobalAutotype: @NO, kMPSettingsKeyGlobalAutotypeKeyDataKey: [[DDHotKey defaultHotKey] keyData], kMPSettingsKeyDefaultGlobalAutotypeSequence: @"{USERNAME}{TAB}{PASSWORD}{ENTER}", + kMPSettingsKeyAutotypeMatchURL: @NO, + kMPSettingsKeyAutotypeMatchHost: @NO, + kMPSettingsKeyAutotypeMatchTags: @NO, kMPSettingsKeyEnableQuicklookPreview: @NO, kMPSettingsKeyCopyGeneratedPasswordToClipboard: @NO, kMPSettingsKeyDefaultPasswordRounds: @50000,