The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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}