Skip to content

Commit

Permalink
Disable speech while composite input is in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
K0R0L committed Feb 15, 2024
1 parent a728e74 commit 3e0249a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion common/workerspeech.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e0249a

Please sign in to comment.