Skip to content

Commit

Permalink
Merge branch hotfix/v8.2.2 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
papacarlo committed Dec 9, 2024
2 parents 85c2d58 + 2266e25 commit e9d0c57
Show file tree
Hide file tree
Showing 8 changed files with 1,463 additions and 1,322 deletions.
2,734 changes: 1,423 additions & 1,311 deletions cell/apiBuilder.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions cell/model/FormulaObjects/parserFormula.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
return res;
};

cBaseType.prototype.toArray = function (putValue, checkOnError, fPrepareElem) {
cBaseType.prototype.toArray = function (putValue, checkOnError, fPrepareElem, bSaveBoolean) {
let arr = [];
if (this.getMatrix) {
arr = this.getMatrix();
Expand All @@ -690,7 +690,11 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
}
}
if (putValue) {
arr[i][j] = arr[i][j].getValue();
if (bSaveBoolean && arr[i][j].type === cElementType.bool) {
arr[i][j] = arr[i][j].toBool();
} else {
arr[i][j] = arr[i][j].getValue();
}
}
}
}
Expand Down
10 changes: 6 additions & 4 deletions common/Scrolls/mobileTouchManagerBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -2698,10 +2698,12 @@
}
}
if (isShow)
AscCommon.g_inputContext.HtmlArea.focus();
{
AscCommon.g_inputContext.showKeyboard();

if (this.isCheckFocusOnClick)
this.isCheckFocusOnClickValue = true;
if (this.isCheckFocusOnClick)
this.isCheckFocusOnClickValue = true;
}
}
};

Expand All @@ -2716,7 +2718,7 @@
if (this.isCheckFocusOnClickValue === true)
{
if (AscCommon.g_inputContext)
AscCommon.g_inputContext.HtmlArea.focus();
AscCommon.g_inputContext.showKeyboard();
this.isCheckFocusOnClickValue = false;
}

Expand Down
27 changes: 24 additions & 3 deletions common/text_input2.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@

// параметры для показа/скрытия виртуальной клавиатуры.
this.isHardCheckKeyboard = AscCommon.AscBrowser.isSailfish;

this.virtualKeyboardClickTimeout = -1;
this.virtualKeyboardClickPrevent = false;
this.virtualKeyboardReadOnly_ShowKeyboard = AscCommon.AscBrowser.isAndroid && AscCommon.AscBrowser.isMozilla;

// для сброса текста при фокусе
this.checkClearTextOnFocusTimerId = -1;
Expand Down Expand Up @@ -1189,7 +1190,9 @@
if (AscCommon.AscBrowser.isAndroid)
{
this.setReadOnlyWrapper(true);
this.virtualKeyboardClickPrevent = true;

if (this.virtualKeyboardReadOnly_ShowKeyboard)
return;

this.virtualKeyboardClickTimeout = setTimeout(function ()
{
Expand All @@ -1205,14 +1208,16 @@

if (AscCommon.AscBrowser.isAndroid)
{
if (this.virtualKeyboardReadOnly_ShowKeyboard)
return;

if (-1 != this.virtualKeyboardClickTimeout)
{
clearTimeout(this.virtualKeyboardClickTimeout);
this.virtualKeyboardClickTimeout = -1;
}

this.setReadOnlyWrapper(false);
this.virtualKeyboardClickPrevent = false;
}
};
CTextInputPrototype.preventVirtualKeyboard_Hard = function()
Expand All @@ -1224,6 +1229,22 @@
this.setReadOnlyWrapper(false);
};

CTextInputPrototype.showKeyboard = function()
{
if (this.virtualKeyboardReadOnly_ShowKeyboard)
{
if (this.HtmlArea.readOnly === true)
{
this.setReadOnlyWrapper(false);
}
}

if (!this.Api.asc_IsFocus())
this.Api.asc_enableKeyEvents(true);
else
focusHtmlElement(this.HtmlArea);
}

CTextInputPrototype.checkViewMode = function()
{
let oldDisableKeyboard = this.isDisableKeyboard;
Expand Down
1 change: 1 addition & 0 deletions configs/slide.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"cell/model/Workbook.js",
"cell/model/Serialize.js",
"cell/model/CellInfo.js",
"cell/model/HeaderFooter.js",
"cell/view/DrawingObjectsController.js",

"word/Editor/Paragraph/RunContent/Types.js",
Expand Down
1 change: 1 addition & 0 deletions configs/word.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"cell/model/Workbook.js",
"cell/model/Serialize.js",
"cell/model/CellInfo.js",
"cell/model/HeaderFooter.js",

"word/Editor/Paragraph/RunContent/Types.js",
"word/Math/mathTypes.js",
Expand Down
2 changes: 1 addition & 1 deletion slide/Drawing/mobileTouchManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@

this.removeHandlersOnClick();

if (!this.Api.asc_IsFocus())
if (!this.Api.asc_IsFocus() && !this.Api.isMobileVersion)
this.Api.asc_enableKeyEvents(true);

var oWordControl = this.Api.WordControl;
Expand Down
2 changes: 1 addition & 1 deletion word/Drawing/mobileTouchManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@

this.removeHandlersOnClick();

if (!this.Api.asc_IsFocus())
if (!this.Api.asc_IsFocus() && !this.Api.isMobileVersion)
this.Api.asc_enableKeyEvents(true);

var oWordControl = this.Api.WordControl;
Expand Down

0 comments on commit e9d0c57

Please sign in to comment.