Skip to content

How to disable callback for add_hotkey #212

Answered by spyoungtech
WingTillDie asked this question in Q&A
Discussion options

You must be logged in to vote

Right now, there is no public interface for this. I am planning to add this functionality in an upcoming release.

As a workaround, you might be able to just replace the hotkey by adding the hotkey again with a no-op function under the same hotkey name. That will overwrite the existing hotkey with a new one whose callback simply does nothing, although that's not quite the same behavior as removing it.

I'll be updating progress on this in #213

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@spyoungtech
Comment options

@spyoungtech
Comment options

Answer selected by WingTillDie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants