soffes/HotKey

How to Release Registered Hotkey?

jsl303 opened this issue · 2 comments

It says "You don’t need to think about when handlers are registered and unregistered. This all happens automatically based on the HotKey object’s lifecycle."
However, is there a way to deregister and release the hotkey manually?

According to the example, all you need to do is unregister with hotkey = nil or update with hotkey = HotKey(xxxx)

leits commented

Thanks, @qwertyyb. Setting the var to nil works.