Skip to content

Commit

Permalink
fix(jira-scripts): don't react to keystrokes when in Jira's visual ed…
Browse files Browse the repository at this point in the history
…itor

Fixing this min. for Firefox, in Chrome these key events are not caught anyway for some reason.

The visual editor is filtered by its attribute "contenteditable". This filtering was implemented in the master branch of the abandoned "jquery.hotkeys" only and in a pretty complicated way -> better use the cleaned-up version in my fork.
  • Loading branch information
pbodnar committed Jul 14, 2021
1 parent 5ddd3f9 commit 307e755
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions JIRA_copy.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// @namespace pbo
// @description JIRA - copy info to clipboard
// @include http://your.jira.example.com/browse/*
// @version 1.1.0
// @version 1.1.1
// @grant GM_registerMenuCommand
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
// @require https://raw.githubusercontent.com/jeresig/jquery.hotkeys/0.2.0/jquery.hotkeys.js
// @require https://raw.githubusercontent.com/pbodnar/jquery.hotkeys/filterTextInputs-easy/jquery.hotkeys.js
// ==/UserScript==

(function($) {
Expand All @@ -22,7 +22,7 @@ function showHelp() {
Press 'D' to display the follow-up shortcuts / options to copy various parts of the page into the clipboard.
@author pbodnar
@version 1.1.0
@version 1.1.1
`);
}

Expand Down
6 changes: 3 additions & 3 deletions JIRA_shortcuts.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// @namespace pbo
// @description JIRA - additional shortcuts for JIRA
// @include http://your.jira.example.com/browse/*
// @version 1.1.0
// @version 1.1.1
// @grant GM_registerMenuCommand
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
// @require https://raw.githubusercontent.com/jeresig/jquery.hotkeys/0.2.0/jquery.hotkeys.js
// @require https://raw.githubusercontent.com/pbodnar/jquery.hotkeys/filterTextInputs-easy/jquery.hotkeys.js
// ==/UserScript==

(function($) {
Expand All @@ -29,7 +29,7 @@ function showHelp() {
... a custom dialog appears which lets you change both estimates easily
@author pbodnar
@version 1.1.0
@version 1.1.1
`);
}

Expand Down

0 comments on commit 307e755

Please sign in to comment.