From 4b228f350b3e0dc5a539434cf8c3d8806f5ac440 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 12 Jul 2019 10:20:08 +0300 Subject: [PATCH] [SSE] Fix Bug 42064 --- apps/spreadsheeteditor/main/app/view/FormulaDialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/FormulaDialog.js b/apps/spreadsheeteditor/main/app/view/FormulaDialog.js index 992e37066..2790fbe20 100644 --- a/apps/spreadsheeteditor/main/app/view/FormulaDialog.js +++ b/apps/spreadsheeteditor/main/app/view/FormulaDialog.js @@ -319,20 +319,20 @@ define([ event.stopPropagation(); } - charVal = String.fromCharCode(e.keyCode); + charVal = e.key; if (e.keyCode > 64 && e.keyCode < 91 && charVal && charVal.length) { - + charVal = charVal.toLocaleLowerCase(); selectRecord = this.store.findWhere({selected: true}); if (selectRecord) { 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) { record = this.store.at(i); value = record.get('value'); - if (value[0] === charVal) { + if (value[0].toLocaleLowerCase() === charVal) { if (null === firstRecord) firstRecord = record;