mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-21 21:01:29 +01:00
Composer: Do not blur when clicking on messages on Android
This commit is contained in:
parent
18c88042e9
commit
64bdaae142
@ -1,11 +1,11 @@
|
||||
import React from '../../../lib/teact/teact';
|
||||
|
||||
import { EDITABLE_INPUT_ID } from '../../../config';
|
||||
import { IS_SINGLE_COLUMN_LAYOUT } from '../../../util/environment';
|
||||
import { IS_IOS } from '../../../util/environment';
|
||||
|
||||
export function preventMessageInputBlur(e: React.MouseEvent<HTMLElement>) {
|
||||
if (
|
||||
IS_SINGLE_COLUMN_LAYOUT
|
||||
IS_IOS
|
||||
|| !document.activeElement
|
||||
|| document.activeElement.id !== EDITABLE_INPUT_ID
|
||||
|| e.target !== e.currentTarget
|
||||
|
Loading…
x
Reference in New Issue
Block a user