Shortcut usage and text focus


is there any way when using C or R shortcuts for the text box to gain focus so you can start typing immediately.


Try this:

  1. Create a local callback directory hierarchy using:
    mkdir -p /opt/rt4/local/html/Callbacks/focusComments/Ticket/Update.html

  2. In that directory create a file called AfterForm (with that exactly that name - case is important!) with this content:

       jQuery(document).ready(function () {
          var waitCKEDITOR = setInterval(function() {
            if (window.CKEDITOR && window.CKEDITOR.instances && window.CKEDITOR.instances['UpdateContent']) {
          }, 1000);
  1. Flush your Mason cache and restart your web server.

What this does is put a custom callback into the /Ticket/Update.html page after the form has been made that generates a bit of JavaScript for the browser. This JavaScript waits for the CKEditor object to be instantiated, and then fires a focus() event at the included editor iframe.

You’ll need to tweak the path to the directory if your RT installation isn’t in /opt/rt4/ of course.