@@ -246,20 +246,6 @@ private static void ChangeRegisteredHotkey(RegisteredHotkeyType registeredType,
246246
247247 #endregion
248248
249- // TODO: Deprecated
250- internal static void OnToggleHotkey ( object sender , HotkeyEventArgs args )
251- {
252- if ( ! _mainViewModel . ShouldIgnoreHotkeys ( ) )
253- _mainViewModel . ToggleFlowLauncher ( ) ;
254- }
255-
256- // TODO: Deprecated
257- private static void OnToggleHotkeyWithChefKeys ( )
258- {
259- if ( ! _mainViewModel . ShouldIgnoreHotkeys ( ) )
260- _mainViewModel . ToggleFlowLauncher ( ) ;
261- }
262-
263249 // TODO: Deprecated
264250 private static void SetHotkey ( string hotkeyStr , EventHandler < HotkeyEventArgs > action )
265251 {
@@ -268,27 +254,7 @@ private static void SetHotkey(string hotkeyStr, EventHandler<HotkeyEventArgs> ac
268254 }
269255
270256 // TODO: Deprecated
271- private static void SetWithChefKeys ( string hotkeyStr )
272- {
273- try
274- {
275- ChefKeysManager . RegisterHotkey ( hotkeyStr , hotkeyStr , OnToggleHotkeyWithChefKeys ) ;
276- ChefKeysManager . Start ( ) ;
277- }
278- catch ( Exception e )
279- {
280- App . API . LogError ( ClassName ,
281- string . Format ( "Error registering hotkey: {0} \n StackTrace:{1}" ,
282- e . Message ,
283- e . StackTrace ) ) ;
284- string errorMsg = string . Format ( App . API . GetTranslation ( "registerHotkeyFailed" ) , hotkeyStr ) ;
285- string errorMsgTitle = App . API . GetTranslation ( "MessageBoxTitle" ) ;
286- App . API . ShowMsgBox ( errorMsg , errorMsgTitle ) ;
287- }
288- }
289-
290- // TODO: Deprecated
291- internal static void SetHotkey ( HotkeyModel hotkey , EventHandler < HotkeyEventArgs > action )
257+ private static void SetHotkey ( HotkeyModel hotkey , EventHandler < HotkeyEventArgs > action )
292258 {
293259 if ( hotkey . IsEmpty )
294260 {
@@ -298,12 +264,6 @@ internal static void SetHotkey(HotkeyModel hotkey, EventHandler<HotkeyEventArgs>
298264 string hotkeyStr = hotkey . ToString ( ) ;
299265 try
300266 {
301- if ( hotkeyStr == "LWin" || hotkeyStr == "RWin" )
302- {
303- SetWithChefKeys ( hotkeyStr ) ;
304- return ;
305- }
306-
307267 HotkeyManager . Current . AddOrReplace ( hotkeyStr , hotkey . CharKey , hotkey . ModifierKeys , action ) ;
308268 }
309269 catch ( Exception e )
@@ -324,12 +284,6 @@ internal static void RemoveHotkey(string hotkeyStr)
324284 {
325285 try
326286 {
327- if ( hotkeyStr == "LWin" || hotkeyStr == "RWin" )
328- {
329- RemoveWithChefKeys ( hotkeyStr ) ;
330- return ;
331- }
332-
333287 if ( ! string . IsNullOrEmpty ( hotkeyStr ) )
334288 HotkeyManager . Current . Remove ( hotkeyStr ) ;
335289 }
@@ -345,13 +299,6 @@ internal static void RemoveHotkey(string hotkeyStr)
345299 }
346300 }
347301
348- // TODO: Deprecated
349- private static void RemoveWithChefKeys ( string hotkeyStr )
350- {
351- ChefKeysManager . UnregisterHotkey ( hotkeyStr ) ;
352- ChefKeysManager . Stop ( ) ;
353- }
354-
355302 #region Hotkey Setting
356303
357304 private static void SetHotkey ( RegisteredHotkeyData hotkeyData )
0 commit comments