PDA

View Full Version : [FNR] Ctrl+C and ctrl+V did not work in numberField with firefox 3.6.13



gald
10 Feb 2011, 7:59 AM
I didn't manage to copy/paste number from number field with key ctrl+C and ctrl+V on firefox 3.6.13

you can try with the number field in the column price here :
http://www.sencha.com/examples/pages/grid/editable.html

maybe the bug affect other firefox's version.

it work with Chrome

vtysh
1 Jul 2011, 2:09 AM
I also noticed this issue. I found this useful topic http://www.sencha.com/forum/showthread.php?52853-FIXED-1.1.3-Firefox3-NumberField-suppresses-Ctrl-C-Ctrl-V-shortcuts

Then i've applied next fix to SpinnerField onKeyPress method:


@Override
protected void onKeyPress(FieldEvent fe) {
super.onKeyPress(fe);

if (fe.isSpecialKey(getKeyCode(fe.getEvent()))
// here the fix is to check whether the control key is pressed in FireFox
|| fe.isControlKey()) {
return;
}

char key = getChar(fe.getEvent());

if (!allowed.contains(key)) {
fe.stopEvent();
}
}

sven
1 Jul 2011, 2:46 AM
This should be fixed in SVN now as of revision 2410