Created
September 23, 2019 16:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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