Project

General

Profile

0001-backoffice-evaluate-template-on-ctrl-enter-keypress-.patch

Frédéric Péters, 08 Feb 2019 02:45 PM

Download (927 Bytes)

View differences:

Subject: [PATCH] backoffice: evaluate template on ctrl-enter keypress in
 devtools (#30490)

 wcs/qommon/static/js/qommon.admin.js | 7 +++++++
 1 file changed, 7 insertions(+)
wcs/qommon/static/js/qommon.admin.js
196 196
      });
197 197
      return false;
198 198
    });
199
    $('#inspect-test-tools textarea').on('keydown', function(e) {
200
      if ((e.ctrlKey || e.metaKey) && (e.keyCode == 13 || e.keyCode == 10)) {
201
        $(this).parents('form').trigger('submit');
202
        return false;
203
      }
204
      return true;
205
    });
199 206
});
200
-