mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-01 16:07:54 +08:00
52c12731cb
* Added unique lock mutexes for thread safety * Fixed a bug in detect key logic * Changed dword to word * Added early unlock statements to fix issue with shortcut guide * Fixed type conversion warnings * Migrated detect shortcut window to use Shortcut class * made changes in Apply button logic * Revert thread safety changes * refactored code works on the UI side * Refactored remapping code to use new Shortcut class * Refactored to SetKeyEvent function * Moved function to cpp file and added more comments * Refactored map variable and handled common Win key * Remove debug code * Change arguments to const references
22 lines
507 B
C++
22 lines
507 B
C++
#pragma once
|
|
#include "Shortcut.h"
|
|
|
|
// This class stores all the variables associated with each shortcut remapping
|
|
class RemapShortcut
|
|
{
|
|
public:
|
|
Shortcut targetShortcut;
|
|
bool isShortcutInvoked;
|
|
ModifierKey winKeyInvoked;
|
|
|
|
RemapShortcut(const Shortcut& sc) :
|
|
targetShortcut(sc), isShortcutInvoked(false), winKeyInvoked(ModifierKey::Disabled)
|
|
{
|
|
}
|
|
|
|
RemapShortcut() :
|
|
isShortcutInvoked(false), winKeyInvoked(ModifierKey::Disabled)
|
|
{
|
|
}
|
|
};
|