mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Move keyboard manager POC code to dev branch (#1455)
* Created PowerKeys project * Swapping tab with shift * Added hash map and iterators for remapping code * Added PowerKeys flag and added toggletomod function * Added shortcut base code * Fixed os level shortcut functionality * Added 1 extra event * Added check for same modifier and comments * Added app-specific remapping for 4 apps including UWP apps * Changed foreground window logic * Added a separate hook for PowerKeys which can be re-hooked by enabling and disabling * Added a separate hook for PowerKeys which can be re-hooked by enabling and disabling * Fixed all priority issues and changed injection flags * Added another msedge.exe shortcut * Added a UI which is linked to the backend hook * Cleaned code and added comments * Added second button * Renamed some files/variables and added an extra button
This commit is contained in:
committed by
Udit Singh
parent
bc4ea885dc
commit
fc7e7074ce
26
src/modules/PowerKeysUI/EditKeyboardWindow.h
Normal file
26
src/modules/PowerKeysUI/EditKeyboardWindow.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <winrt/Windows.system.h>
|
||||
#include <winrt/windows.ui.xaml.hosting.h>
|
||||
#include <windows.ui.xaml.hosting.desktopwindowxamlsource.h>
|
||||
#include <winrt/windows.ui.xaml.controls.h>
|
||||
#include <winrt/Windows.ui.xaml.media.h>
|
||||
#include <winrt/Windows.Foundation.Collections.h>
|
||||
#include "winrt/Windows.Foundation.h"
|
||||
#include "winrt/Windows.Foundation.Numerics.h"
|
||||
#include "winrt/Windows.UI.Xaml.Controls.Primitives.h"
|
||||
|
||||
using namespace winrt;
|
||||
using namespace Windows::UI;
|
||||
using namespace Windows::UI::Composition;
|
||||
using namespace Windows::UI::Xaml::Hosting;
|
||||
using namespace Windows::Foundation::Numerics;
|
||||
using namespace Windows::Foundation;
|
||||
using namespace Windows::UI::Xaml;
|
||||
using namespace Windows::UI::Xaml::Controls;
|
||||
|
||||
__declspec(dllexport) void createEditKeyboardWindow(HINSTANCE hInst);
|
||||
__declspec(dllexport) void registerWinClass(HINSTANCE& hInst);
|
||||
Reference in New Issue
Block a user