From 990643e5d49f9eb9a9622d2d89afc8a58e927810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Wed, 31 Aug 2016 01:03:19 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20raccourci=20K-Psul=20pour=20LIQ=20:=20f?= =?UTF-8?q?l=C3=A8che=20bas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/templates/kfet/kpsul.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index bcd260f5..ddd1ce6b 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -238,6 +238,15 @@ $(document).ready(function() { } }); + triInput.on('keydown', function(e) { + if (e.keyCode == 40) { + // Arrow Down - Shorcut to LIQ + triInput.val('LIQ'); + triInput.trigger('input'); + } + }); + + // ----- // Checkout data management // -----