1
0
Fork 0

Phi: use keyCode instead of key in property browser

looks like only Firefox supports 'key'. Safari and Chrome don't.
This commit is contained in:
Torsten Dreyer 2015-02-27 11:44:30 +01:00
parent 398995264d
commit f8a4581771

View file

@ -85,11 +85,11 @@ define([
}
inplaceEditor.on('keyup', function(evt) {
switch (evt.key) {
case 'Esc':
switch (evt.keyCode) {
case 27:
endEdit();
break;
case 'Enter':
case 13:
endEdit(inplaceEditor.val());
break;
}