[SSE] Fix Bug 42064
This commit is contained in:
parent
931f01cdd2
commit
4b228f350b
|
@ -319,20 +319,20 @@ define([
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
charVal = String.fromCharCode(e.keyCode);
|
charVal = e.key;
|
||||||
if (e.keyCode > 64 && e.keyCode < 91 && charVal && charVal.length) {
|
if (e.keyCode > 64 && e.keyCode < 91 && charVal && charVal.length) {
|
||||||
|
charVal = charVal.toLocaleLowerCase();
|
||||||
selectRecord = this.store.findWhere({selected: true});
|
selectRecord = this.store.findWhere({selected: true});
|
||||||
if (selectRecord) {
|
if (selectRecord) {
|
||||||
value = selectRecord.get('value');
|
value = selectRecord.get('value');
|
||||||
isEqualSelectRecord = (value && value.length && value[0] === charVal)
|
isEqualSelectRecord = (value && value.length && value[0].toLocaleLowerCase() === charVal)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < this.store.length; ++i) {
|
for (i = 0; i < this.store.length; ++i) {
|
||||||
record = this.store.at(i);
|
record = this.store.at(i);
|
||||||
value = record.get('value');
|
value = record.get('value');
|
||||||
|
|
||||||
if (value[0] === charVal) {
|
if (value[0].toLocaleLowerCase() === charVal) {
|
||||||
|
|
||||||
if (null === firstRecord) firstRecord = record;
|
if (null === firstRecord) firstRecord = record;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue