Created
April 9, 2018 01:03
-
-
Save majutsushi/f5c30d9e3cd7ac527eba2cbba4f47eac to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// @include *RapidBoard.jsp* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// From https://jira.atlassian.com/browse/JSWSERVER-12296 | |
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