Forums

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

Disable Keyboard Shortcuts - Letter C

Sanjay Sohal July 18, 2019

How to Disable Keyboard Shortcuts - Letter C - which opens a new ticket window

4 answers

1 vote
Zahra Amin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2020

The only solution I've found:

You can use ScriptRunner (Adaptavist ScriptRunner for Confluence) plugin to disable this.
Go to ScriptRunner Fragments section and create a "Hide System or UI Plugin Element" and hide the following elements:

com.atlassian.confluence.plugins.confluence-create-content-plugin:header-create-dialog
com.atlassian.confluence.plugins.confluence-create-content-plugin:header-create-quick

Write "return false" in the script.

 

Screen Shot 2020-02-22 at 1.40.25 PM.png

Ibraheem Chaudry April 13, 2021

Excellent solution! In case only need to disable for a particular group you can use this snippet:

 

import com.atlassian.crowd.embedded.api.CrowdService
import com.atlassian.sal.api.component.ComponentLocator

def crowdService = ComponentLocator.getComponent(CrowdService)
!crowdService.isUserMemberOfGroup(context.currentUser?.name, "{group name goes here}")

0 votes
Matt Tse
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 22, 2020

Hi everyone,

Thanks for the lively discussion about keyboard shortcuts! My name’s Matt and I’m one of the product managers in Jira Cloud. My team picked this problem up and have just started to roll out a feature that will allow users to enable/disable shortcuts at a per-user level.

enable and disable keyboard shortcut.png

See the attached screenshot of what this will look like. We were constrained by time so we decided to put it into the keyboard shortcut (Shift + ?) dialog for now. We believe this will address the problem and in the future, we will consider adding it inside the user profile page.

As of this afternoon, it will be available to 5% of Jira Cloud customers and we aim to get this rolled out to 100% in early August.

Kind regards,
Matt

0 votes
Sourav Sengupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2019

I had the same problem in Confluence while creating page using custom template. When user creates a new page using my template and presses Caps+C while filling up the contents, Confluence creates a new page and disregards the current page. I handled it in my template through JQuery. Here's the code

<script type="text/javascript">
    AJS.toInit(function(){ 
if(Confluence.KeyboardShortcuts.enabled){
RW.shortcutsEnabled =function(){
return false;
};
}
});
</script>
0 votes
Manuel Bastardo Castellano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 18, 2019

Suggest an answer

Log in or Sign up to answer