You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
@beaugunderson The Discord codebase is an obfuscated release of their React application, making it extremely challenging to hook to something inside the application's logic
Realistically, we cannot hook to their keyboard shortcuts settings to trick it into letting us configure it; because even if we manage to do it, as soon as they release an update of their codebase our feature will break horribly
What we can do is a list of hotkeys we want to support, and simulate user events to match their intended behaviors.
For example, Cmd + 1 should go to the first server of the sidebar, meaning we can look for this server's DOM element and trigger its onClick event.
Of course it will not be possible to get all hotkeys to work, but supporting a subset is better than nothing!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Example:
Command + [
Command + ]
Command + 1
Command + 2
...
The text was updated successfully, but these errors were encountered: