Disable speech while composite input is in progress

This commit is contained in:
Oleg Korshul
2024-02-15 21:28:51 +03:00
parent a728e74515
commit 3e0249a67c

View File

@ -253,9 +253,20 @@
this._setValue = this._setValuePermanentlyDiffEqual;
this.speech = function(type, obj)
this.isSpeechEnabled = function()
{
if (!this.isEnabled)
return false;
if (AscCommon.g_inputContext && AscCommon.g_inputContext.isCompositionProcess())
return false;
return true;
};
this.speech = function(type, obj)
{
if (!this.isSpeechEnabled())
return;
if (undefined === obj)