Add keyboard activation to the interactive elements and use stable keys. [skip build]
This commit is contained in:
@@ -3,7 +3,6 @@ import { isKeyHotkey } from 'is-hotkey';
|
||||
import { Editor } from 'slate';
|
||||
import { IconButton, Line, PopOut } from 'folds';
|
||||
import { useAtomValue } from 'jotai';
|
||||
import { Room } from 'matrix-js-sdk';
|
||||
import { Icon, Icons } from '../../components/icons';
|
||||
import {
|
||||
CustomEditor,
|
||||
@@ -28,7 +27,6 @@ import { PluginButtonSlot } from '../settings/plugins/PluginButtonSlot';
|
||||
type ForumChatComposerProps = {
|
||||
editor: Editor;
|
||||
roomId: string;
|
||||
room: Room;
|
||||
placeholder?: string;
|
||||
onSend?: () => void;
|
||||
showAttachButton?: boolean;
|
||||
@@ -39,7 +37,6 @@ type ForumChatComposerProps = {
|
||||
export function ForumChatComposer({
|
||||
editor,
|
||||
roomId,
|
||||
room,
|
||||
placeholder = 'Send a message…',
|
||||
onSend,
|
||||
showAttachButton = false,
|
||||
|
||||
Reference in New Issue
Block a user