Ability to disable keyboard shortcuts #5760
Replies: 13 comments 17 replies
|
Hey @brylie - sorry for delay in getting you a response, but came across this while searching for feedback. In the fall our accessibility team shipped a feature that allows you to disable character key keyboard shortcuts. You can disable them in the Accessibility section of your user settings. |
|
Unfortunately only a handful of shortcuts can be disabled in Accessibility. For example for me GitHub has started to think that |
|
I am on a Mac and use CTL+G with a custom browser extension to switch between github.com and corresponding github.io sites (to grade student work). I never have used keyboard shortcuts on the site. For some reason CTL is now working as a modifier key for an Apple computer and breaking my tool. Please let me disable all keyboard shortcuts. |
|
I use To hack a workaround, I used tampermonkey and wrote a userscript to disable // ==UserScript==
// @name Github: Disable ctrl+g keyboard shortcut (for macos Group Tab shortcut)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Disable ctrl+g on github.com
// @author jdanbrown
// @match https://github.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(() => {
'use strict';
const f = eventName => event => {
// console.log(`[XXX] ${eventName}`, {event}); // XXX Debug
if (event.ctrlKey && event.key === 'g') {
// console.log(`[XXX] ${eventName}: ctrl+g`, {event}); // XXX Debug
// Yep, either of these prevents github from seeing it
event.cancelBubble = true;
event.stopImmediatePropagation();
// Nope, this one prevents github _and_ macos from seeing it
// - ctrl+g configured in: System Settings -> Keyboard -> Shortcuts -> App Shortcuts -> Google Chrome
// event.preventDefault();
}
};
[
'keydown', // This one works
// 'keyup', // This one isn't needed
].map(eventName => {
document.addEventListener(
eventName,
f(eventName),
// Must pass useCapture:true else github still sees it
true, // useCapture
);
});
})(); |
|
The comment marked as an answer is not an answer. The solution suggested there only disables a subset of the keyboard shortcuts, which are regularly in the way. |
|
Please let me disable any shortcuts related to shift as the only modifier. Frankly let me disable ALL shortcuts, thanks. The shortcuts either conflicts with native browser shortcuts, window managers or Vimium. |
|
Still no fix. Gets very annoying and total productivity killer. At least gitlab has basics right. |
|
I also request the ability to disable all keyboard shortcuts. Specifically the quoting code shortcut. Enabling 'character keys' in accessibility settings does nothing to change this. |
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
FYI @meegta there is nothing in your message, you just quoted the initial message. Note also the selected answer, to use accessibility settings to disable them. If you encountered shortcuts which were still disruptive despite this setting, please specify. |
|
I’ve noticed that GitHub’s single-letter keyboard shortcuts (like c, t, e) conflict with external tools such as Grammarly. For example, typing naturally in Grammarly’s editor triggers unintended GitHub actions (e.g., opening the command palette or jumping to tabs). Could you please add an option to: Disable keyboard shortcuts globally, or Whitelist specific pages (like text fields with active plugins)? This would prevent interference with third-party tools while preserving productivity. Thanks for considering this improvement |
|
GH overrides the Chrome Cmd+Shift+a shortcut which pulls up tab search, and it's very frustrating. When are we getting the ability to turn these off? |


Hey @brylie - sorry for delay in getting you a response, but came across this while searching for feedback. In the fall our accessibility team shipped a feature that allows you to disable character key keyboard shortcuts. You can disable them in the Accessibility section of your user settings.