How can you save the object in the ember by pressing ctrl + s? It is known to any property . How can I get access to the vault ?
document.body.addEventListener('keydown', function (e) {
if ((e.keyCode === 83) && (e.ctrlKey)) {
e.preventDefault();
var name_obj = get_name_obj(); //name or id or everyone parameter not self object
console.log('ctrl + s');;
}
});
Aucun commentaire:
Enregistrer un commentaire