@@ -122,7 +122,7 @@ private static bool HandleRegisteredKeyPress(IntPtr wParam, int vkCode, KeyRecor
122122
123123 if ( triggerCombo )
124124 {
125- comboFound . action ? . Invoke ( "" ) ;
125+ comboFound . action ? . Invoke ( ) ;
126126 cancelAction = false ;
127127
128128 return false ;
@@ -143,7 +143,7 @@ private static bool HandleRegisteredKeyPress(IntPtr wParam, int vkCode, KeyRecor
143143
144144 StartMenuBlocked = true ;
145145
146- keyRecord . action ? . Invoke ( "" ) ;
146+ keyRecord . action ? . Invoke ( ) ;
147147
148148 return true ;
149149 }
@@ -157,7 +157,7 @@ private static bool HandleRegisteredKeyPress(IntPtr wParam, int vkCode, KeyRecor
157157 if ( ! cancelAction )
158158 {
159159 if ( keyRecord . isSingleKeyRegistered )
160- keyRecord . action ? . Invoke ( "" ) ;
160+ keyRecord . action ? . Invoke ( ) ;
161161 }
162162
163163 cancelAction = false ;
@@ -201,9 +201,9 @@ private static void BlockWindowsStartMenu()
201201
202202 #region key management
203203
204- public static void RegisterHotkey ( string hotkeys , Action < string > action ) => RegisterHotkey ( hotkeys , hotkeys , action ) ;
204+ public static void RegisterHotkey ( string hotkeys , Action action ) => RegisterHotkey ( hotkeys , hotkeys , action ) ;
205205
206- public static void RegisterHotkey ( string hotkeys , string previousHotkey , Action < string > action )
206+ public static void RegisterHotkey ( string hotkeys , string previousHotkey , Action action )
207207 {
208208 hotkeys = ConvertIncorrectKeyString ( hotkeys ) ;
209209 previousHotkey = ConvertIncorrectKeyString ( previousHotkey ) ;
0 commit comments