Function Repository Resource:

Win32HotkeyHandlerClear

Source Notebook

Remove an existing hotkey handler

Contributed by: Daniel Bigham

ResourceFunction["Win32HotkeyHandlerClear"][name]

clears a previously set hotkey handler.

Details and Options

ResourceFunction["Win32HotkeyHandlerClear"] returns True if a handler with the given name was removed, and returns False otherwise.

Examples

Basic Examples (2) 

Set a hotkey handler with the resource function Win32HotkeyHandlerSet:

In[1]:=
ResourceFunction["Win32HotkeyHandlerSet"][
  	{
   		{"Control", "R"} :> Echo["Hello, world!"]
   	},
  	"MyHotkeyHandler"
  ];

Remove the hotkey handler:

In[2]:=
ResourceFunction["Win32HotkeyHandlerClear"]["MyHotkeyHandler"]
Out[2]=

Publisher

Daniel Bigham

Version History

  • 1.0.0 – 23 January 2020

Related Resources

License Information