From 3774319ffe2771cfdeebbf229b384c29e08f4768 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 10 Dec 2024 14:26:09 +0800 Subject: [PATCH] update comment --- src/libs/setShouldShowComposeInputKeyboardAware/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/setShouldShowComposeInputKeyboardAware/index.ts b/src/libs/setShouldShowComposeInputKeyboardAware/index.ts index 1cae452f0c58..b3a2e7542148 100644 --- a/src/libs/setShouldShowComposeInputKeyboardAware/index.ts +++ b/src/libs/setShouldShowComposeInputKeyboardAware/index.ts @@ -2,9 +2,9 @@ import * as Composer from '@userActions/Composer'; import type SetShouldShowComposeInputKeyboardAware from './types'; const setShouldShowComposeInputKeyboardAware: SetShouldShowComposeInputKeyboardAware = (shouldShow) => { - // When the edit composer loses focus, we want to show the main composer. + // We want to show the main composer when the edit composer loses focus. // If it loses focus due to a pressable being pressed, the press event might not be captured. - // To address this, we delay showing the main composer to allow the press event to complete. + // To address this, we delay showing the main composer to allow the press event to be completed. setTimeout(() => { Composer.setShouldShowComposeInput(shouldShow); }, 0);