Skip to content

Instantly share code, notes, and snippets.

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 majutsushi/f5c30d9e3cd7ac527eba2cbba4f47eac to your computer and use it in GitHub Desktop.
Save majutsushi/f5c30d9e3cd7ac527eba2cbba4f47eac to your computer and use it in GitHub Desktop.
// ==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