Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
Ext JS 6 - Firefox doesn't recognize enter as special key
Hi,
I'm having a problem in Ext.Editor using Firefox latest release(50.1.0) on Mac. I'm using Ext JS 6.0.1
I've seen this code:
Code:
initComponent: function() {
var me = this,
field = me.field = Ext.ComponentManager.create(me.field || {}, 'textfield');
field.msgTarget = field.msgTarget || 'qtip';
me.mon(field, {
scope: me,
specialkey: me.onSpecialKey
});
if (field.grow) {
me.mon(field, 'autosize', me.onFieldAutosize, me, {delay: 1});
}
me.floating = {
constrain: me.constrain
};
me.items = field;
me.callParent(arguments);
}
As the documentation says, specialKey Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check Ext.event.Event#getKey to determine which key was pressed.
But on Firefox this doesn't happen when I press the enter key while on an editor, the event is never fired.
Anyone with the same issue?
is this a bug?
-
Thanks for the report. This was reported a while back but it later couldn't be reproduced in recent releases so the ticket was closed.
https://www.sencha.com/forum/showthread.php?301938
Can you please post a test case which reproduces this issue for you?
https://fiddle.sencha.com/#view/editor
-
Sencha User
Never mind..I was working on the fiddle and discovered it was a bug in my code.
-
Glad to hear you've eliminated the bug, and thanks for posting a follow-up here.