Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73116

Remove Prototype from keyboard-shortcut-plugin - stopped working in 2.426.x

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.426.3

      I recently upgraded the Jenkins server to 2.426.3 and the "keyboard-shortcut-plugin" stopped working. Nothing happens when I use the keyboard shortcuts.

      Plugin page: https://plugins.jenkins.io/keyboard-shortcuts-plugin/

      When Jenkins loads I see the below error message in browser console

      keyboard-shortcuts.js:33 Uncaught TypeError: Event.observe is not a function
          at keyboard-shortcuts.js:33:9 

          [JENKINS-73116] Remove Prototype from keyboard-shortcut-plugin - stopped working in 2.426.x

          Mark Waite added a comment -

          Thanks for the report. The keyboard shortcuts plugin was last released 5 years ago. It uses the Prototype.js Javascript library that was removed from Jenkins core. The removal was started in May 2023 with an announcement blog post and completed in October 2023 with Jenkins 2.426.

          You could modernize the plugin and switch it from Prototype.js to modern Javascript.

          You could uninstall the plugin and accept that the plugin won't work with Jenkins versions 2.426 or newer.

          Mark Waite added a comment - Thanks for the report. The keyboard shortcuts plugin was last released 5 years ago. It uses the Prototype.js Javascript library that was removed from Jenkins core. The removal was started in May 2023 with an announcement blog post and completed in October 2023 with Jenkins 2.426 . You could modernize the plugin and switch it from Prototype.js to modern Javascript. You could uninstall the plugin and accept that the plugin won't work with Jenkins versions 2.426 or newer.

          Ajay Kumar added a comment -

          Thanks markewaite. Let me give it a try to modernize the plugin.

          Ajay Kumar added a comment - Thanks markewaite . Let me give it a try to modernize the plugin.

          Henrique added a comment -

          What is the status of this ticket ajaydwarkani ?

          Henrique added a comment - What is the status of this ticket ajaydwarkani ?

          Ajay Kumar added a comment -

          nepo26, this never became my priority as I got caught up with other priorities.

          Ajay Kumar added a comment - nepo26 , this never became my priority as I got caught up with other priorities.

            surenpi Rick
            ajaydwarkani Ajay Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: