mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[Kbm] Save the remaps to file[part-1] (#2184)
* Added Inital FileWatcher Implementation * Added logic to read remap from file * Added remap logic save to file * Refactor code * Moved the strings to constant file * Added logic to handle Win key * Updated filewatcher logic to avoid duplicate events * Added comments * Fix spacing * Fix spacing * Update logic to accomodate upstream merge * Added global property name for os level shortcuts * Added subkey for inprocess keys * Remove non required file * Added Changes required after merge * Fix spacing in Helper.cpp
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
namespace KeyboardManagerConstants
|
||||
{
|
||||
// Name of the powertoy module.
|
||||
inline const std::wstring ModuleName = L"Keyboard Manager";
|
||||
|
||||
// Name of the property use to store current active configuration.
|
||||
inline const std::wstring ActiveConfigurationSettingName = L"activeConfiguration";
|
||||
|
||||
// Name of the property use to store single keyremaps.
|
||||
inline const std::wstring RemapKeysSettingName = L"remapKeys";
|
||||
|
||||
// Name of the property use to store single keyremaps array in case of in process approach.
|
||||
inline const std::wstring InProcessRemapKeysSettingName = L"inProcess";
|
||||
|
||||
// Name of the property use to store shortcut remaps.
|
||||
inline const std::wstring RemapShortcutsSettingName = L"remapShortcuts";
|
||||
|
||||
// Name of the property use to store global shortcut remaps array.
|
||||
inline const std::wstring GlobalRemapShortcutsSettingName = L"global";
|
||||
|
||||
// Name of the property use to store original keys.
|
||||
inline const std::wstring OriginalKeysSettingName = L"originalKeys";
|
||||
|
||||
// Name of the property use to store new remap keys.
|
||||
inline const std::wstring NewRemapKeysSettingName = L"newRemapKeys";
|
||||
|
||||
// Name of the default configuration.
|
||||
inline const std::wstring DefaultConfiguration = L"default";
|
||||
|
||||
// Name of the named mutex used for configuration file.
|
||||
inline const std::wstring ConfigFileMutexName = L"PowerToys.KeyboardManager.ConfigMutex";
|
||||
|
||||
// Name of the dummy update file.
|
||||
inline const std::wstring DummyUpdateFileName = L"settings-updated.json";
|
||||
|
||||
// Fake key code to represent VK_WIN.
|
||||
inline const DWORD VK_WIN_BOTH = 0x104;
|
||||
}
|
||||
Reference in New Issue
Block a user