From fc4fe31876f70d9ef91e3d0de02328f890246663 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Mon, 16 Apr 2018 18:48:48 +0200 Subject: [PATCH] Forgot english file --- html/js/app_en.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html/js/app_en.js b/html/js/app_en.js index 9992857c..b6eee1fa 100644 --- a/html/js/app_en.js +++ b/html/js/app_en.js @@ -46,6 +46,13 @@ name : name }); + + document.onkeyup = function (key) { + if (key.which == 27) { // Escape key + $.post('http://' + ESX_MENU.ResourceName + '/menu_cancel', JSON.stringify(data)); + } + }; + ESX_MENU.render(); }