Skip to content

Conversation

@MartinPrograms
Copy link

This plugin can disable arbitrary shortcuts from discord!

Discord's shortcuts are handled through a few independent systems, I've tried to implement this plugin using "combokeys", but a lot of shortcuts (like ctrl+, or ctrl+/) are handled elsewhere and can not be reliably disabled through that mechanism.

Because of that the plugin captures the keydown event, to intercept the shortcuts before they ever reach discord's internal handlers, this avoids incomplete coverage and is less brittle.

This does involve adding a scoped DOM event listener. The implementation does not mutate the DOM, does not patch React components, and removes the listener when the plugin is disabled.

@maddyuwu123
Copy link

this would be a nice feature to have!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants