Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7846

I can submit form with keyboard shortcut

    Details

      Description

      We would like to be able to submit an embedded form using a keyboard shortcut (proposal: ctrl-enter).

        Activity

        Hide
        seif.ghezala Seif Ghezala added a comment -

        Notice:
        The shortcut is only trigged from inside any input field in an embedded form to conform to the usual behaviour of form submission shortcuts.
        This is different from the behaviour of existing tasklist shortcuts that get triggered from anywhere inside the window except input fields.

        Show
        seif.ghezala Seif Ghezala added a comment - Notice: The shortcut is only trigged from inside any input field in an embedded form to conform to the usual behaviour of form submission shortcuts. This is different from the behaviour of existing tasklist shortcuts that get triggered from anywhere inside the window except input fields.
        Hide
        roman.smirnov Smirnov Roman added a comment -

        When hitting ctrl+enter on Chrome/Linux the keyCode is 10 and not 13 (see [1]). We should change

        if (e.ctrlKey && e.keyCode === 13) 
        

        to

        if (e.ctrlKey && (e.keyCode === 13 || e.keyCode === 10))
        

        [1]: https://bugs.chromium.org/p/chromium/issues/detail?id=79407#c2

        Show
        roman.smirnov Smirnov Roman added a comment - When hitting ctrl+enter on Chrome/Linux the keyCode is 10 and not 13 (see [1] ). We should change if (e.ctrlKey && e.keyCode === 13) to if (e.ctrlKey && (e.keyCode === 13 || e.keyCode === 10)) [1] : https://bugs.chromium.org/p/chromium/issues/detail?id=79407#c2
        Hide
        seif.ghezala Seif Ghezala added a comment -

        Roman Smirnov Nice catch.

        Show
        seif.ghezala Seif Ghezala added a comment - Roman Smirnov Nice catch.

          People

          • Assignee:
            yana.vasileva Yana Vasileva
            Reporter:
            mariusz.sielski Mariusz Sielski
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development