mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Pressing escape acts like.. escaping!
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user