mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Disable speech while composite input is in progress
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user