mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-24 07:29:35 +01:00
23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
|
|
#pragma once
|
||
|
|
#include "keyboardmanager/common/Helpers.h"
|
||
|
|
#include <variant>
|
||
|
|
#include <vector>
|
||
|
|
#include "keyboardmanager/common/Shortcut.h"
|
||
|
|
|
||
|
|
namespace BufferValidationHelpers
|
||
|
|
{
|
||
|
|
enum class DropDownAction
|
||
|
|
{
|
||
|
|
NoAction,
|
||
|
|
AddDropDown,
|
||
|
|
DeleteDropDown,
|
||
|
|
ClearUnusedDropDowns
|
||
|
|
};
|
||
|
|
|
||
|
|
// Function to validate and update an element of the key remap buffer when the selection has changed
|
||
|
|
KeyboardManagerHelper::ErrorType ValidateAndUpdateKeyBufferElement(int rowIndex, int colIndex, int selectedKeyIndex, const std::vector<DWORD>& keyCodeList, RemapBuffer& remapBuffer);
|
||
|
|
|
||
|
|
// Function to validate an element of the shortcut remap buffer when the selection has changed
|
||
|
|
std::pair<KeyboardManagerHelper::ErrorType, DropDownAction> ValidateShortcutBufferElement(int rowIndex, int colIndex, uint32_t dropDownIndex, const std::vector<int32_t>& selectedIndices, std::wstring appName, bool isHybridControl, const std::vector<DWORD>& keyCodeList, const RemapBuffer& remapBuffer, bool dropDownFound);
|
||
|
|
}
|