Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Deactivate or block jira shortcuts

Hendrik Heß August 6, 2019

Hello,

I'm writing a plugin which renderes a table on a new page on Jira. When I'm trying to edit the table (through contenteditable = "true" inside html) the Jira shortcuts are getting activated and I cannot deactivate or block them. 

I already tried to just deactivate them on ? -> Keyboard Shortcuts as shown here 

shortcuts.PNG

but now I just cannot type these letters. For example, before I deactivated them when I wrote "abc" Jira changed from Fast- to Dev-Mode (cause of "b") and opened the window to create an issue (because of "c").

I also tried to block these Events through JavaScript, but this did not help too, cause the shortcuts from Jira be executed in front of my js.

Thanks,

Hendrik.

1 answer

0 votes
gabrielsan December 5, 2021

Hello

I've faced the same issue and I fixed this problem by listening the keypress events in the contenteditable element and stopping the event propagation. Example:

 

{code}

contentEditableElement.onkeypress = (evt) => {
evt.stopPropagation()
}

{code}

Suggest an answer

Log in or Sign up to answer