Commit f888f6f7 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

reset view on keypress 'r' (also there's button in the menu)

parent 206c8567
...@@ -239,6 +239,12 @@ X3DOMObject.prototype.KeyEvents = function(){ ...@@ -239,6 +239,12 @@ X3DOMObject.prototype.KeyEvents = function(){
} }
},true); },true);
self.element.addEventListener('keypress',function(e){
if (e.key=="r"){
$("#reset_view").click();
}
});
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment