Skip to content
Snippets Groups Projects
Commit 5eaee7b3 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

excape to blur input

parent 401c1e5c
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,11 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'],
_handleKeyStroke: function(e){//receives keyup and keydown
if ($("input").is(':focus')) return;//we are typing in an input
if ($("input").is(':focus')) {
if (e.keyCode == 27) $(':focus').blur();
return;
}//we are typing in an input
if ($("textarea").is(':focus')) return;//we are typing in an input
var state = e.data.state;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment