locked
CRM 2011 : Add Custom Keyboard Shortcuts? RRS feed

  • Question

  • Anyone know if you can add your own custom keyboard shortcuts to either existing buttons, or custom buttons?  I have a request to add a keyboard shortcut to the 'Mark as Completed' button on the Task form.  Google search came up short.

    Thanks!

    Friday, January 20, 2012 4:39 PM

Answers

  • Hi Chris

     you can definitely do add keyboard shortcut  to Custom button in ISV.Config

    There is a AccessKey attribute to Button

    Which Specifies a single character that works as a keyboard shortcut for accessing the button. When this is specified, ALT+<key> can be used to access this button.

    http://msdn.microsoft.com/en-us/library/cc150891.aspx

     

    Or else you can do by javascript  use attachEvent in the form onload and attach the keypress event to the DOM body. Then detect the key combination you want and then call the same code you have in the ISV.config button or locate the button in the DOM using getElementById and then triggering the onclick event.

     

    hth

    dkay

     

     if the response answered your question, please take a minute and mark the response as an answer.

    • Proposed as answer by D kay Saturday, January 21, 2012 5:15 PM
    • Marked as answer by ChrisH5491 Sunday, January 22, 2012 3:14 PM
    Saturday, January 21, 2012 5:15 PM

All replies

  • Hi Chris

     you can definitely do add keyboard shortcut  to Custom button in ISV.Config

    There is a AccessKey attribute to Button

    Which Specifies a single character that works as a keyboard shortcut for accessing the button. When this is specified, ALT+<key> can be used to access this button.

    http://msdn.microsoft.com/en-us/library/cc150891.aspx

     

    Or else you can do by javascript  use attachEvent in the form onload and attach the keypress event to the DOM body. Then detect the key combination you want and then call the same code you have in the ISV.config button or locate the button in the DOM using getElementById and then triggering the onclick event.

     

    hth

    dkay

     

     if the response answered your question, please take a minute and mark the response as an answer.

    • Proposed as answer by D kay Saturday, January 21, 2012 5:15 PM
    • Marked as answer by ChrisH5491 Sunday, January 22, 2012 3:14 PM
    Saturday, January 21, 2012 5:15 PM
  • Thank you, I will give one of these a try!
    Sunday, January 22, 2012 3:14 PM