mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
Add CTRL + ENTER to force send message.
Fix: cursor jumping to the end of message area. Fix: inconsistent message send button on mobile.
This commit is contained in:
@@ -6,6 +6,7 @@ import { decodeTime } from "ulid";
|
||||
import { Text } from "preact-i18n";
|
||||
|
||||
import { useDictionary } from "../../../lib/i18n";
|
||||
import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice";
|
||||
|
||||
import { dayjs } from "../../../context/Locale";
|
||||
|
||||
@@ -34,9 +35,11 @@ export default styled.div<BaseMessageProps>`
|
||||
flex-direction: row;
|
||||
padding-inline-end: 16px;
|
||||
|
||||
@media (pointer: coarse) {
|
||||
user-select: none;
|
||||
}
|
||||
${() =>
|
||||
isTouchscreenDevice &&
|
||||
css`
|
||||
user-select: none;
|
||||
`}
|
||||
|
||||
${(props) =>
|
||||
props.contrast &&
|
||||
|
||||
Reference in New Issue
Block a user