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(); }