Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Greasemonkey userscript to prevent Jira from capturing the Alt+1 Alt+2 Alt+3 keyboard shortcuts
// ==UserScript==
// @name JIRA: Prevent Alt+[123] hijacking
// @namespace https://github.com/yurikhan/
// @include *RapidBoard.jsp*
// @version 1
// @grant none
// ==/UserScript==
// https://jira.atlassian.com/browse/JSWSERVER-12296?focusedCommentId=957921&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-957921
document.body.addEventListener('keypress', function (event) {
if (event.altKey && (0x31 <= event.charCode && event.charCode <= 0x33)) {
event.stopPropagation();
}
}, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.