Fixed overflow in Type Shortcut (#2930)

* Fixed overflow in Type Shortcut

* hide the stackpanel if it is not required

* changed loop
This commit is contained in:
Arjun Balgovind
2020-05-14 09:23:51 -07:00
committed by GitHub
parent 6f38cdec5a
commit 9d5990311f
4 changed files with 55 additions and 23 deletions

View File

@@ -55,8 +55,9 @@ private:
StackPanel currentSingleKeyUI;
std::mutex currentSingleKeyUI_mutex;
// Stores the UI element which is to be updated based on the shortcut entered
StackPanel currentShortcutUI;
// Stores the UI element which is to be updated based on the shortcut entered (each stackpanel represents a row of keys)
StackPanel currentShortcutUI1;
StackPanel currentShortcutUI2;
std::mutex currentShortcutUI_mutex;
// Stores the current configuration name.
@@ -126,7 +127,7 @@ public:
bool AddOSLevelShortcut(const Shortcut& originalSC, const Shortcut& newSC);
// Function to set the textblock of the detect shortcut UI so that it can be accessed by the hook
void ConfigureDetectShortcutUI(const StackPanel& textBlock);
void ConfigureDetectShortcutUI(const StackPanel& textBlock1, const StackPanel& textBlock2);
// Function to set the textblock of the detect remap key UI so that it can be accessed by the hook
void ConfigureDetectSingleKeyRemapUI(const StackPanel& textBlock);