Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deactivate or block jira shortcuts

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you