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

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

Examples

Basic Examples

Set and then remove a hotkey handler:

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

Publisher

Daniel Bigham

Version History

  • 1.0.1 – 14 August 2024
  • 1.0.0 – 23 January 2020

Related Resources

License Information