hello,
I'm very happy with IndooGrid but have a small problem with the gridEdit.js script, more specifcly the function fkpr(el,ev) which isn't behaving as it should (for us).
1. when we have a form like
name:
first name:
etc
and want to fill in " this is a ' test " (without the "), while typing the ' character on my keyboard the next field is selected. I am using a foreign keyboard (azerty nl-BE), but I guess I'm not the only one using IndooGrid not using US qwerty.
I traced the javascript and (kinda) solved it by putting in an extra line:
isDown=false;isUp=false;isLeft=false;isRight=false;isCtrl=(ev.ctrlKey);
and commenting out
//isDown=(keyCode==40);isUp=(keyCode==38);isLeft=(keyCode==37);isRight=(keyCode==39);isCtrl=(ev.ctrlKey);
it seems our ' key (which is the 4 key) generates a keycode 52 AND a keycode 39 when I put a trace ( alert("keycode: " + keyCode); ) in your javascript, so I understand why it does a field change, but I don't understand why it generates the keycode 39. If I test it here: http://www.ryancooper.com/resources/keycode.asp then it only generates keycode 52.
2. this is minor, but important to us - when we have a dropdownlist, let's say with countries, you can't quick-select a country by typing it in with the focus on the control.
Let's say you have a dropdown with 100 countries
You type "Cana" (fast enough)
Normally it would select Canada, but with the script enabled it select the first country starting with A (let's say Argentina).
If I disable this if clause in your fkpr function:
if (vid>-1 && vid<vidlAll){...}
then it works for us.
I must say, I do not fully understand what this part of the function does, but for now I keep it disabled so our users can quickly select the contents of a dropdownlist using the keyboard.
for the developers: maybe you want to take a look at this, maybe not, I just thought it might help someone,
kind regards,
Dennis