ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: lsl on September 23, 2014, 02:49:44 pm
-
For the previous version ,
if I put this code in program
obj.editModel= { saveKey: $.ui.keyCode.ENTER }
, it will move to next field if I press "enter".
However, it will not be for the version 2.2. Does it want to change any code to do so?
-
It's changed in 2.2.0 to make its behavior different from Tab key.
-
How can I get back this event?
As the end users are familiar with the enter key, they don't accept to use "tab" to go to next field.
-
I has just passed the version 2.2 to the end user to test it. They reported that it was lost the focus after press the enter but it was gone to the next field previously. They highly recommend to get back the entry key. But at least, how to avoid the lost of the focus and change from edit mode to non-edit mode? Can you help me?
-
Change from edit mode to non-edit mode upon enter key can be prevented by returning false in editorKeyDown event
editorKeyDown: function(evt, ui){
if(evt.keyCode == $.ui.keyCode.ENTER){
return false;
}
}
http://jsfiddle.net/nsswbmah/