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:
parent
398995264d
commit
f8a4581771
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue