Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Created September 23, 2019 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gene1wood/aa1c7fe0ce68b529bd3196018e7f600b to your computer and use it in GitHub Desktop.
Save gene1wood/aa1c7fe0ce68b529bd3196018e7f600b to your computer and use it in GitHub Desktop.
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