mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
* Set up KBM WinUI3 Editor UI project * Test invoking the KBM library via wrapper for WinUI3 C# UI * Set up Editor Library Wrapper and enable logging * fix spelling * update spacing and remove unused file * fix formatting * update sln * update wrapper project config * import common props * update UI reference * gate the new editor with the experimentation toggle in settings
21 lines
702 B
C++
21 lines
702 B
C++
#include "pch.h"
|
|
#include "KeyboardManagerEditorLibraryWrapper.h"
|
|
|
|
#include <common/utils/logger_helper.h>
|
|
#include <keyboardmanager/KeyboardManagerEditor/KeyboardManagerEditor.h>
|
|
|
|
// Test function to call the remapping helper function
|
|
|
|
bool CheckIfRemappingsAreValid()
|
|
{
|
|
RemapBuffer remapBuffer;
|
|
|
|
// Mock valid key to key remappings
|
|
remapBuffer.push_back(RemapBufferRow{ RemapBufferItem({ (DWORD)0x41, (DWORD)0x42 }), std::wstring() });
|
|
remapBuffer.push_back(RemapBufferRow{ RemapBufferItem({ (DWORD)0x42, (DWORD)0x43 }), std::wstring() });
|
|
|
|
auto result = LoadingAndSavingRemappingHelper::CheckIfRemappingsAreValid(remapBuffer);
|
|
|
|
return result == ShortcutErrorType::NoError;
|
|
}
|