From efe081b3f72180e00cfbbda4e45544b49c495a16 Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 12 Apr 2024 21:30:31 +0900 Subject: [PATCH] Added Show/Hide Trigger by style --- Flow.Launcher/HotkeyControl.xaml.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Flow.Launcher/HotkeyControl.xaml.cs b/Flow.Launcher/HotkeyControl.xaml.cs index f08a80147..63d8abb62 100644 --- a/Flow.Launcher/HotkeyControl.xaml.cs +++ b/Flow.Launcher/HotkeyControl.xaml.cs @@ -57,6 +57,29 @@ namespace Flow.Launcher Loaded += HotkeyControl_Loaded; } + /*------------------ New Logic Structure Part ------------------------*/ + + private void ToggleOn() + { + if (HotkeyBtn.IsChecked == true) + { + /* 1. Key Recording Start */ + /* 2. Key Display area clear + * 3. Key Display when typing*/ + } + } + + private void StopRecPressed() + { + /* If Stop Button Pressed*/ + /* 1. Save the REC Keys to settings + * 2. Reload Keys Display from settings + * * 3. Hide MenuBorder + * 4. Change ToggleBtn isChcked to false */ + } + + /*------------------ New Logic Structure Part------------------------*/ + private void HotkeyControl_LostFocus(object o, RoutedEventArgs routedEventArgs) { HotKeyMapper.SetHotkey(CurrentHotkey, Action);